#include <plane3.h>
Public Member Functions | |
Constructors and Destructors | |
| TPlane3 () throw () | |
| Default constructor. | |
| TPlane3 (const TPlane3 &plane) throw () | |
| Copy constructor. | |
| TPlane3 (const TVector3< T > &point, const TVector3< T > &normal) throw () | |
| Detailed constructor. | |
| TPlane3 (const TVector3< T > &a, const TVector3< T > &b, const TVector3< T > &c) throw () | |
| Detailed constructor. | |
| TPlane3 (const T &a, const T &b, const T &c, const T &d) throw (Exception::DivisionByZero) | |
| Constructor. | |
| virtual | ~TPlane3 () throw () |
| Destructor. | |
| virtual void | clear () throw () |
| Clear method. | |
Assignment | |
| void | swap (TPlane3 &plane) throw () |
| void | set (const TPlane3 &plane) throw () |
| Swap the contents of two instances of planes. | |
| void | set (const TVector3< T > &point, const TVector3< T > &normal) throw () |
| Assign from a point and a normal. | |
| void | set (const TVector3< T > &a, const TVector3< T > &b, const TVector3< T > &c) throw () |
| Assign from three points. | |
| TPlane3 & | operator= (const TPlane3 &plane) throw () |
| Assignment operator. | |
| void | get (TPlane3 &plane) const throw () |
| Assign to another instance of Plane3. | |
| void | get (TVector3< T > &point, TVector3< T > &normal) const throw () |
| Assign to a point and a normal. | |
Accessors | |
| void | normalize () throw (Exception::DivisionByZero) |
| Normalize the the normal of the plane. | |
| void | hessify () throw () |
| Hessify the plane. | |
Predicates | |
| bool | operator== (const TPlane3 &plane) const throw () |
| Equality operator. | |
| bool | operator!= (const TPlane3 &plane) const throw () |
| Inequality operator. | |
| bool | has (const TVector3< T > &point) const throw () |
| Test whether a given point is a member of the plane. | |
| bool | has (const TLine3< T > &line) const throw () |
| Test whether a given line is a member of the plane. | |
Debugging and Diagnostics | |
| bool | isValid () const throw () |
| Test whether instance is valid. | |
| void | dump (std::ostream &s=std::cout, Size depth=0) const throw () |
| Internal state dump. | |
Public Attributes | |
Attributes | |
| TVector3< T > | p |
| The point. | |
| TVector3< T > | n |
| The normal. | |
A plane is defined by a point and its normal.
|
|||||||||
|
Default constructor.
This method creates a new TPlane3 object. The two components are initialized to |
|
||||||||||
|
Copy constructor. Create a new TPlane3 object from another.
|
|
||||||||||||||||
|
Detailed constructor. Create a new instances of TPlane3 from a point and the normal.
|
|
||||||||||||||||||||
|
Detailed constructor. Create a new instance of TPlane3 from three points.
|
|
||||||||||||||||||||||||
|
Constructor.
Create a new TPlane3 object from four
|
|
|||||||||
|
Destructor. Destructs the TPlane3 object. As there are no dynamic data structures, nothing happens. |
|
|||||||||
|
Clear method. The values are set to 0. |
|
||||||||||||||||
|
Internal state dump. Dump the current internal state of {*this} to the output ostream s with dumping depth depth .
|
|
||||||||||||||||
|
Assign to a point and a normal.
|
|
||||||||||
|
Assign to another instance of Plane3. Assigns the components to another plane.
|
|
||||||||||
|
Test whether a given line is a member of the plane.
|
|
||||||||||
|
Test whether a given point is a member of the plane.
|
|
|||||||||
|
Hessify the plane.
The normal is scaled with its length: |
|
|||||||||
|
Test whether instance is valid. always retruns true
|
|
|||||||||
|
Normalize the the normal of the plane.
The normal is scaled with its length:
|
|
||||||||||
|
Inequality operator.
|
|
||||||||||
|
Assignment operator. Assign the components from another instance of plane.
|
|
||||||||||
|
Equality operator.
|
|
||||||||||||||||||||
|
Assign from three points.
|
|
||||||||||||||||
|
Assign from a point and a normal.
|
|
||||||||||
|
Swap the contents of two instances of planes.
|