"L. Spiro Engine"
|
00001 00016 #ifndef __LSM_CAPSULE3_H__ 00017 #define __LSM_CAPSULE3_H__ 00018 00019 #include "../LSMMathLib.h" 00020 #include "../Vector/LSMVector3.h" 00021 00022 namespace lsm { 00023 00030 class CCapsule3 { 00031 // All is public. This class has no secrets. 00032 public : 00033 // == Various constructors. 00034 LSE_INLINE LSE_CALLCTOR CCapsule3(); 00035 LSE_INLINE LSE_CALLCTOR CCapsule3( const CCapsule3 &_cCapsule ); 00036 LSE_INLINE LSE_CALLCTOR CCapsule3( const CVector3 &_vA, const CVector3 &_vB, LSREAL _fR ); 00037 00038 00039 // == Members. 00043 CVector3 a; 00044 00048 CVector3 b; 00049 00053 LSREAL r; 00054 }; 00055 00056 00057 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00058 // DEFINITIONS 00059 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00060 // == Various constructors. 00061 LSE_INLINE LSE_CALLCTOR CCapsule3::CCapsule3() { 00062 } 00063 LSE_INLINE LSE_CALLCTOR CCapsule3::CCapsule3( const CCapsule3 &_cCapsule ) : 00064 a( _cCapsule.a ), 00065 b( _cCapsule.b ), 00066 r( _cCapsule.r ) { 00067 } 00068 LSE_INLINE LSE_CALLCTOR CCapsule3::CCapsule3( const CVector3 &_vA, const CVector3 &_vB, LSREAL _fR ) : 00069 a( _vA ), 00070 b( _vB ), 00071 r( _fR ) { 00072 } 00073 00074 } // namespace lsm 00075 00076 #endif // __LSM_CAPSULE3_H__