It is defined by four vertices , , and . The orientation of a tetrahedron is the orientation of its four vertices. That means it is positive when is on the positive side of the plane defined by , and .
The tetrahedron itself splits the space in a positive and a negative side.
The boundary of a tetrahedron splits the space in two open regions, a bounded one and an unbounded one.
| |
introduces a tetrahedron t with vertices , , and .
|
|
| Test for equality: two tetrahedra t and t2 are equal, iff t and t2 have the same orientation and their sets (not sequences) of vertices are equal. |
|
| Test for inequality. |
|
| returns the i'th vertex modulo 4 of t. |
|
| returns vertex(int i). |
|
| Tetrahedron t is degenerate, if the vertices are coplanar. | ||
|
|
|||
|
| |||
| ||||
|
| |||
|
For convenience we provide the following Boolean functions:
|
| |
|
| |
|
| |
|
| |
|
|
|
| returns the signed volume of t. |
|
| returns a bounding box containing t. |
|
| |
returns the tetrahedron obtained by applying on the three vertices of t. |