"L. Spiro Engine"
|
00001 00016 #ifndef __LSM_CYLINDER3_H__ 00017 #define __LSM_CYLINDER3_H__ 00018 00019 #include "../LSMMathLib.h" 00020 #include "../Vector/LSMVector3.h" 00021 00022 namespace lsm { 00023 00030 class CCylinder3 { 00031 // All is public. This class has no secrets. 00032 public : 00033 // == Various constructors. 00034 LSE_INLINE LSE_CALLCTOR CCylinder3(); 00035 LSE_INLINE LSE_CALLCTOR CCylinder3( const CCylinder3 &_cCylinder ); 00036 LSE_INLINE LSE_CALLCTOR CCylinder3( const CVector3 &_vA, const CVector3 &_vB, LSREAL _fR ); 00037 00038 00039 // == Members. 00040 // The starting point. 00041 CVector3 a; 00042 00043 // Ending point. 00044 CVector3 b; 00045 00046 // Radius. 00047 LSREAL r; 00048 }; 00049 00050 00051 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00052 // DEFINITIONS 00053 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00054 // == Various constructors. 00055 LSE_INLINE LSE_CALLCTOR CCylinder3::CCylinder3() { 00056 } 00057 LSE_INLINE LSE_CALLCTOR CCylinder3::CCylinder3( const CCylinder3 &_cCylinder ) : 00058 a( _cCylinder.a ), 00059 b( _cCylinder.b ), 00060 r( _cCylinder.r ) { 00061 } 00062 LSE_INLINE LSE_CALLCTOR CCylinder3::CCylinder3( const CVector3 &_vA, const CVector3 &_vB, LSREAL _fR ) : 00063 a( _vA ), 00064 b( _vB ), 00065 r( _fR ) { 00066 } 00067 00068 } // namespace lsm 00069 00070 #endif // __LSM_CYLINDER3_H__