Ignore:
Timestamp:
03/31/06 17:29:32 (18 years ago)
Author:
igarcia
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/IMGPlane3.cpp

    r699 r721  
    11 
    2 #include "IMGPlane3.h" 
     2#include <IMGPlane3.h> 
    33 
    44namespace IMG { 
    55 
    6 Plane3::~Plane3() { 
     6Plane3::Plane3() 
     7{ 
    78} 
    89 
     10Plane3::~Plane3()  
     11{ 
     12} 
     13 
     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; 
     21} 
     22 
     23Ogre::Vector3 * Plane3::GetNormal()  
     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 
     32void Plane3::SetNormal(float x, float y, float z)  
     33{ 
     34    normal.x = x; 
     35    normal.y = y; 
     36    normal.z = z;                
     37} 
     38 
     39void Plane3::SetDistance(float dist)  
     40{ 
     41    d = dist; 
     42} 
     43 
     44float Plane3::GetDistance() const  
     45{  
     46        return d; 
     47} 
     48 
     49void Plane3::Print()  
     50{ 
     51        Ogre::LogManager::getSingleton().logMessage("Printant pla: (" + Ogre::StringConverter::toString(normal) + Ogre::StringConverter::toString(d) + ")"); 
     52} 
    953 
    1054} 
Note: See TracChangeset for help on using the changeset viewer.