Specifies a triangle through three points in 3D space.
This class stores three member vertices a, b and c to specify the triangle.
![]() | Specifies a triangle through three points in 3D space. |
![]() | The first triangle endpoint. |
![]() | The second triangle endpoint. |
![]() | The third triangle endpoint. |
![]() | The default constructor does not initialize any members of this class. |
![]() | Translates this Triangle in world space. |
![]() | Applies a transformation to this Triangle, in-place. |
![]() | Expresses the given point in barycentric (u,v,w) coordinates. |
![]() | Expresses the given point in barycentric (u,v) coordinates. |
![]() | Returns the point at the given barycentric coordinates. |
![]() | Computes the center of mass of this triangle. |
![]() | Identical to CenterPoint(), but provided to enable common signature with Triangle, AABB and OBB to allow them to be used in template classes. |
![]() | Computes the surface area of this triangle. |
![]() | Computes the total edge length of this triangle. |
![]() | Returns a pointer to the vertices of this triangle. The array contains three elements. |
![]() | Returns a vertex of this triangle. |
![]() | |
![]() | Returns an edge of this triangle. |
![]() | Returns the counterclockwise-oriented plane this triangle lies on. |
![]() | Returns the clockwise-oriented plane this triangle lies on. |
![]() | Returns the normalized triangle normal pointing to the counter-clockwise direction of this triangle. |
![]() | Returns the normalized triangle normal pointing to the clockwise direction of this triangle. |
![]() | Computes an unnormalized counter-clockwise oriented triangle normal vector. |
![]() | Computes an unnormalized clockwise-oriented triangle normal vector. |
![]() | Quickly returns an arbitrary point inside this Triangle. Used in GJK intersection test. |
![]() | Computes an extreme point of this Triangle in the given direction. |
![]() | Returns a Polygon representation of this Triangle. |
![]() | Returns a Polyhedron representation of this Triangle. |
![]() | Returns the tight AABB that encloses this Triangle. |
![]() | Tests if this Triangle is finite. |
![]() | Returns true if this triangle is degenerate. |
![]() | Tests if the given object is fully contained inside this triangle. |
![]() | Computes the distance between this triangle and the given object. |
![]() | |
![]() | Tests whether this triangle and the given object intersect. |
![]() | Projects this Triangle onto the given axis. |
![]() | |
![]() | |
![]() | Computes the closest point on this triangle to the given object. |
![]() | Computes the closest point on the edge of this triangle to the given object. |
![]() | Generates a random point inside this Triangle. |
![]() | Chooses a corner vertex of this Triangle at random. |
![]() | Generates a random point on the edge of this Triangle. |
![]() | Returns a human-readable representation of this Line. Most useful for debugging purposes. |
![]() | |
![]() | Returns a string of C++ code that can be used to construct this object. Useful for generating test cases from badly behaving objects. |
![]() | |
![]() | Compares whether this Triangle and the given Triangle are identical bit-by-bit in the underlying representation. |
![]() | |
![]() | |
![]() | |
![]() | Tests if the given barycentric UVW coordinates lie inside a triangle. |
![]() | Computes the surface area of the given 2D triangle. |
![]() | Relates the barycentric coordinate of the given point to the surface area of triangle abc. |
![]() | Returns true if the triangle defined by the three given points is degenerate. |
![]() | A helper function used in line-triangle tests. |
![]() |