source: GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGPlane3.h @ 700

Revision 700, 949 bytes checked in by igarcia, 18 years ago (diff)
Line 
1#ifndef _IMGPLANE3_H
2#define _IMGPLANE3_H
3
4#include "IMGPrerequisites.h"
5
6namespace IMG {
7
8class Plane3: public Ogre::Plane {
9  public:
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        };
20
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        };
28
29    inline void SetNormal(float x, float y, float z) {
30                normal.x = x;
31                normal.y = y;
32                normal.z = z;           
33        };
34
35    inline void SetDistance(float dist) {
36                d = dist;
37        };
38
39    inline float GetDistance() const { return d;};
40
41    inline void Print() {
42                printf("\nPrintant pla: (%.4f, %.4f, %.4f, %.4f)", normal.x, normal.y, normal.z, d);
43        };
44
45    ~Plane3();
46
47};
48
49}
50#endif
Note: See TracBrowser for help on using the repository browser.