- Timestamp:
- 03/31/06 17:29:32 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGPlane3.h
r700 r721 2 2 #define _IMGPLANE3_H 3 3 4 #include "IMGPrerequisites.h"4 #include <IMGPrerequisites.h> 5 5 6 6 namespace IMG { … … 9 9 public: 10 10 //a plane's interface 11 //Plane(); 12 //~Plane(); 13 inline Plane3 & operator =(const Plane3 & p) { 14 normal.x = p.normal.x; 15 normal.y = p.normal.y; 16 normal.z = p.normal.z; 17 d = p.d; 18 return *this; 19 }; 11 Plane3(); 20 12 21 inline Ogre::Vector3 * GetNormal() { 22 Ogre::Vector3 *v = new Ogre::Vector3; 23 v->x = normal.x; 24 v->y = normal.y; 25 v->z = normal.z; 26 return v; 27 }; 13 virtual ~Plane3(); 28 14 29 inline void SetNormal(float x, float y, float z) { 30 normal.x = x; 31 normal.y = y; 32 normal.z = z; 33 }; 15 Plane3 & operator =(const Plane3 & p); 34 16 35 inline void SetDistance(float dist) { 36 d = dist; 37 }; 17 Ogre::Vector3 * GetNormal(); 38 18 39 inline float GetDistance() const { return d;};19 void SetNormal(float x, float y, float z); 40 20 41 inline void Print() { 42 printf("\nPrintant pla: (%.4f, %.4f, %.4f, %.4f)", normal.x, normal.y, normal.z, d); 43 }; 21 void SetDistance(float dist); 44 22 45 ~Plane3(); 23 float GetDistance() const; 24 25 void Print(); 46 26 47 27 };
Note: See TracChangeset
for help on using the changeset viewer.