BALL
1.4.79
|
#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.
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
TVector3<T> BALL::TPlane3< T >::n |
TVector3<T> BALL::TPlane3< T >::p |