Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

GXSphere.h

Go to the documentation of this file.
00001 #ifndef __GXSPHERE_H
00002 #define __GXSPHERE_H
00003 
00004 #include "GXStandardDefines.h"
00005 
00006 class CGXSphere
00007 {
00008 public:
00009         CGXSphere();
00010 
00011         CGXSphere(float fRadius, D3DXVECTOR3& vPos);
00012 
00013 
00014 public:
00015         inline float GetRadius()
00016         {
00017                 return m_fRadius;
00018         }
00019 
00020         inline void SetRadius(float fRad)
00021         {
00022                 assert(fRad>=0.0f);
00023                 m_fRadius=fRad;
00024         }
00025 
00026         inline void GetPos(D3DXVECTOR3* pOut)
00027         {
00028                 assert(pOut!=NULL);
00029                 *pOut=m_vPos;
00030         }
00031 
00032         inline void SetPos(D3DXVECTOR3* pIn)
00033         {
00034                 assert(pIn!=NULL);
00035                 m_vPos=*pIn;
00036         }
00037 
00038 
00039 private:
00040         float   m_fRadius;
00041         D3DXVECTOR3 m_vPos;
00042 };
00043 
00044 
00045 
00046 
00047 
00048 
00049 
00050 #endif

Generated on Thu May 23 17:51:00 2002 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001