source: GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/IMGPlane3.cpp @ 731

Revision 731, 812 bytes checked in by igarcia, 18 years ago (diff)
RevLine 
[699]1
[721]2#include <IMGPlane3.h>
[699]3
4namespace IMG {
5
[721]6Plane3::Plane3()
7{
[699]8}
9
[721]10Plane3::~Plane3()
11{
12}
[699]13
[721]14Plane3 & Plane3::operator =(const Plane3 & p)
15{
16    normal.x = p.normal.x;
17    normal.y = p.normal.y;
18    normal.z = p.normal.z;
19    d = p.d;           
20    return *this;
[699]21}
[721]22
[731]23Ogre::Vector3 * Plane3::getNormal()
[721]24{
25        Ogre::Vector3 *v = new Ogre::Vector3;
26    v->x = normal.x;
27    v->y = normal.y;
28    v->z = normal.z;
29    return v;
30}
31
[731]32void Plane3::setNormal(float x, float y, float z)
[721]33{
34    normal.x = x;
35    normal.y = y;
36    normal.z = z;               
37}
38
[731]39void Plane3::setDistance(float dist)
[721]40{
41    d = dist;
42}
43
[731]44float Plane3::getDistance() const
[721]45{
46        return d;
47}
48
[731]49void Plane3::print()
[721]50{
51        Ogre::LogManager::getSingleton().logMessage("Printant pla: (" + Ogre::StringConverter::toString(normal) + Ogre::StringConverter::toString(d) + ")");
52}
53
54}
Note: See TracBrowser for help on using the repository browser.