As any Jordan curve the boundary of a triangle splits the plane in two open regions, a bounded one and an unbounded one.
#include <CGAL/Triangle_2.h>
| |||
introduces a triangle t with vertices ,
and .
|
|
| Test for equality: two triangles are equal, iff there exists a cyclic permutation of the vertices of , such that they are equal to the vertices of t. |
|
| Test for inequality. |
|
| returns the i'th vertex modulo 3 of t. |
|
| returns vertex(i). |
|
| triangle t is degenerate, if the vertices are collinear. |
|
| returns the orientation of t. |
|
| |
returns CGAL_ON_ORIENTED_BOUNDARY, or CGAL_POSITIVE_SIDE, or the constant CGAL_ON_NEGATIVE_SIDE, determined by the position of point . | ||
|
| |
returns the constant CGAL_ON_BOUNDARY, CGAL_ON_BOUNDED_SIDE, or else CGAL_ON_UNBOUNDED_SIDE, depending on where point is. |
For convenience we provide the following boolean functions:
|
| |
|
| |
|
| |
|
| |
|
|
|
| returns a triangle where the boundary is oriented the other way round (this flips the positive and the negative side, but not the bounded and unbounded side). |
|
| returns a bounding box containing t. |
|
| |
returns the triangle obtained by applying on the three vertices of t. |