00001 /*-----------------------------------------------------------------------* 00002 Project:Nintendo Augmented Reality Library. 00003 File:narDistortion.h 00004 00005 Copyright (C)2011-2012 Nintendo Co., Ltd. All rights reserved. 00006 00007 These coded instructions, statements, and computer programs contain 00008 proprietary information of Nintendo and/or its licensed developers 00009 and are protected by national and international copyright laws. They 00010 may not be disclosed to third parties or copied or duplicated in any 00011 form, in whole or in part, without the prior written consent of 00012 Nintendo. 00013 The content herein is highly confidential and should be handled 00014 accordingly. 00015 *-----------------------------------------------------------------------*/ 00016 00018 00023 #ifndef NAR_DISTORTION_H__ 00024 #define NAR_DISTORTION_H__ 00025 00026 #include "narPort.h" 00027 #include "narVec2.h" 00028 00029 namespace mw { namespace nar 00030 { 00033 class Distortion_cl 00034 { 00035 public: 00066 Distortion_cl( f32 x, f32 y, f32 factor ) 00067 : m_Center( x, y ), m_Factor( factor ) 00068 {} 00069 00072 void GetIdealFromObserv( Vec2F_st & r_Ideal, const Vec2F_st & cr_Observ ) const; 00075 void GetObservFromIdeal( Vec2F_st & r_Observ, const Vec2F_st & cr_Ideal ) const; 00076 private: 00077 Vec2F_st m_Center; 00078 f32 m_Factor; 00079 }; 00080 } 00081 } 00082 #endif 00083
© 2011-2012 Nintendo. All rights reserved.
CONFIDENTIAL