class: etk::template<T> Plane


Description:



Synopsis:

+ etk::Vector3D<T> m_normal;
+ T m_intercept;
+ Plane ();
+ Plane (etk::Vector3D<T> _normal,
T _intercept);
+ Plane (const Plane & obj);
+ ~Plane ();
+ void setNormal (const etk::Vector3D<T> & _obj);
+ void setIntercept (float _intercept);
+ void setFromPoints (const etk::Vector3D<T> & p0,
const etk::Vector3D<T> & p1,
const etk::Vector3D<T> & p2);
+ void calculateIntercept (const etk::Vector3D<T> & _pointOnPlane);
+ void normalize ();
+ etk::Vector3D<T> getNormal ();
+ float getIntercept ();
+ bool intersect3 (const Plane<T> & _p2,
const Plane<T> & _p3,
etk::Vector3D<T> & _result);
+ float getDistance (const etk::Vector3D<T> & _point) const;
+ Plane<T> linearInterpolate (const Plane<T> & _p2,
float _factor);
+ bool operator == (const Plane<T> & _obj) const;
+ bool operator != (const Plane<T> & _obj) const;
+ Plane<T> operator - () const;
+ Plane<T> operator + () const;

Detail:

m_normal

+ etk::Vector3D<T> m_normal;
X.N+intercept=0


m_intercept

+ T m_intercept;



Plane

+  Plane ();
Constructor


Plane

+  Plane (etk::Vector3D<T> _normal,
T _intercept);



Plane

+  Plane (const Plane & obj);



~Plane

+  ~Plane ();
Destructor


setNormal

+ void setNormal (const etk::Vector3D<T> & _obj);


setIntercept

+ void setIntercept (float _intercept);


setFromPoints

+ void setFromPoints (const etk::Vector3D<T> & p0,
const etk::Vector3D<T> & p1,
const etk::Vector3D<T> & p2);


calculateIntercept

+ void calculateIntercept (const etk::Vector3D<T> & _pointOnPlane);


normalize

+ void normalize ();


getNormal

+ etk::Vector3D<T> getNormal ();


getIntercept

+ float getIntercept ();


intersect3

+ bool intersect3 (const Plane<T> & _p2,
const Plane<T> & _p3,
etk::Vector3D<T> & _result);


getDistance

+ float getDistance (const etk::Vector3D<T> & _point) const;


linearInterpolate

+ Plane<T> linearInterpolate (const Plane<T> & _p2,
float _factor);


operator ==

+ bool operator == (const Plane<T> & _obj) const;


operator !=

+ bool operator != (const Plane<T> & _obj) const;


operator -

+ Plane<T> operator - () const;


operator +

+ Plane<T> operator + () const;