BALL
1.4.1
|
#include <BALL/MATHS/plane3.h>
Public Member Functions | |
Constructors and Destructors | |
TPlane3 () | |
TPlane3 (const TPlane3 &plane) | |
TPlane3 (const TVector3< T > &point, const TVector3< T > &normal) | |
TPlane3 (const TVector3< T > &a, const TVector3< T > &b, const TVector3< T > &c) | |
TPlane3 (const T &a, const T &b, const T &c, const T &d) | |
virtual | ~TPlane3 () |
virtual void | clear () |
Assignment | |
void | swap (TPlane3 &plane) |
void | set (const TPlane3 &plane) |
void | set (const TVector3< T > &point, const TVector3< T > &normal) |
void | set (const TVector3< T > &a, const TVector3< T > &b, const TVector3< T > &c) |
TPlane3 & | operator= (const TPlane3 &plane) |
void | get (TPlane3 &plane) const |
void | get (TVector3< T > &point, TVector3< T > &normal) const |
Accessors | |
void | normalize () |
void | hessify () |
Predicates | |
bool | operator== (const TPlane3 &plane) const |
bool | operator!= (const TPlane3 &plane) const |
bool | has (const TVector3< T > &point) const |
bool | has (const TLine3< T > &line) const |
Debugging and Diagnostics | |
bool | isValid () const |
void | dump (std::ostream &s=std::cout, Size depth=0) const |
Public Attributes | |
Attributes | |
TVector3< T > | p |
TVector3< T > | n |
Threedimensional plane. A plane is defined by a point and its normal.
BALL::TPlane3< T >::TPlane3 | ( | ) | [inline] |
BALL::TPlane3< T >::TPlane3 | ( | const TPlane3< T > & | plane | ) | [inline] |
BALL::TPlane3< T >::TPlane3 | ( | const TVector3< T > & | point, |
const TVector3< T > & | normal | ||
) | [inline] |
BALL::TPlane3< T >::TPlane3 | ( | const TVector3< T > & | a, |
const TVector3< T > & | b, | ||
const TVector3< T > & | c | ||
) | [inline] |
BALL::TPlane3< T >::TPlane3 | ( | const T & | a, |
const T & | b, | ||
const T & | c, | ||
const T & | d | ||
) | [inline] |
Constructor. Create a new TPlane3 object from four T
values. Form: COORDINATE (ax + by + cz + d = 0)
a,b,c | are used to calculate the normal n and the point p |
Exception::DivisionByZero | if a == b == c == 0 |
virtual BALL::TPlane3< T >::~TPlane3 | ( | ) | [inline, virtual] |
virtual void BALL::TPlane3< T >::clear | ( | ) | [inline, virtual] |
void BALL::TPlane3< T >::dump | ( | std::ostream & | s = std::cout , |
Size | depth = 0 |
||
) | const [inline] |
void BALL::TPlane3< T >::get | ( | TPlane3< T > & | plane | ) | const [inline] |
void BALL::TPlane3< T >::get | ( | TVector3< T > & | point, |
TVector3< T > & | normal | ||
) | const [inline] |
bool BALL::TPlane3< T >::has | ( | const TVector3< T > & | point | ) | const [inline] |
bool BALL::TPlane3< T >::has | ( | const TLine3< T > & | line | ) | const [inline] |
void BALL::TPlane3< T >::hessify | ( | ) | [inline] |
bool BALL::TPlane3< T >::isValid | ( | ) | const [inline] |
void BALL::TPlane3< T >::normalize | ( | ) | [inline] |
Normalize the the normal of the plane. The normal is scaled with its length: .
Exception::DivisionByZero | if the length of the normal is 0 |
bool BALL::TPlane3< T >::operator!= | ( | const TPlane3< T > & | plane | ) | const [inline] |
TPlane3& BALL::TPlane3< T >::operator= | ( | const TPlane3< T > & | plane | ) | [inline] |
bool BALL::TPlane3< T >::operator== | ( | const TPlane3< T > & | plane | ) | const [inline] |
void BALL::TPlane3< T >::set | ( | const TPlane3< T > & | plane | ) | [inline] |
void BALL::TPlane3< T >::set | ( | const TVector3< T > & | point, |
const TVector3< T > & | normal | ||
) | [inline] |
void BALL::TPlane3< T >::set | ( | const TVector3< T > & | a, |
const TVector3< T > & | b, | ||
const TVector3< T > & | c | ||
) | [inline] |
void BALL::TPlane3< T >::swap | ( | TPlane3< T > & | plane | ) | [inline] |
TVector3<T> BALL::TPlane3< T >::n |
TVector3<T> BALL::TPlane3< T >::p |