"L. Spiro Engine"

F:/My Projects/LSEngine/Modules/LSPhysicsLib/Src/BoundingBoxes/LSPObb2d.h

00001 
00018 #ifndef __LSE_OBB2D_H__
00019 #define __LSE_OBB2D_H__
00020 
00021 #include "../LSPPhysicsLib.h"
00022 #include "Matrix/LSMMatrix4x4.h"
00023 #include "Vector/LSMVector2.h"
00024 
00025 namespace lsp {
00026 
00035         class CObb2d {
00036                 // All is public.  This class has no secrets.
00037         public :
00038                 // == Functions.
00039                 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00040                 // DISTANCE TESTS
00041                 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00042                 // == Points.
00049                 CVector2 LSE_CALL                                               ClosestPointToPoint( const CVector2 &_vPoint ) const;
00050                 
00058                 LSREAL LSE_CALL                                                 GetSqDistFromPoint( const CVector2 &_vPoint ) const;
00059 
00066                 LSVOID LSE_CALL                                                 Transform( const CMatrix4x4 &_mTransform, CObb2d &_oob2Ret ) const;
00067 
00068 
00069                 // == Members.
00073                 CVector2                                                                m_vCenter;
00074 
00078                 CVector2                                                                m_vAxes[2];
00079 
00083                 CVector2                                                                m_vExtents;
00084         };
00085 
00086 }       // namespace lsp
00087 
00088 #endif  // __LSE_OBB2D_H__
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator