CSphere.h Source File

Chapitre 1

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

CSphere.h

00001 
00007 #ifndef __CSPHERE_H__
00008 #define __CSPHERE_H__
00009 
00010 #include "CObject.h"
00011 
00012 class CSphere : public CObject
00013 {
00014         private:
00015                 CVector3D       m_Center; // Le centre de la sphére
00016                 float           m_Radius; // Le rayon de la sphére
00017 
00018         public:
00019                 // constructeurs et destructeur 
00020                 CSphere() {}
00021                 CSphere(CVector3D center, float radius) : m_Center(center), m_Radius(radius) {}
00022                 virtual ~CSphere() {}
00023 
00024                 // [hérité de CObject]
00025                 bool IntersectsNode(const CRay& ray, CIntersectInfo *intersectInfo=NULL) ; 
00026 };
00027 
00028 #endif /* #ifndef __CSPHERE_H__ */

Generated on Thu Apr 4 23:14:17 2002 by doxygen1.2.15