Triangle
A geometric triangle as defined by three vectors representing its three corners.
Triangles are mutable and not thread-safe. Use each instance from one thread only. Most methods change this and return it for chaining.
The constructor stores the given Vector3 instances by reference, so Triangle(v, v, v) shares v across all three corners.
Constructors
Properties
Functions
Link copied to clipboard
Returns the closest point on the triangle to the given point.
Link copied to clipboard
Returns true if the given point, when projected onto the plane of the triangle, lies within the triangle.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Computes the midpoint of the triangle.
Link copied to clipboard
Returns true if this triangle intersects with the given box.
Link copied to clipboard
Returns true if the triangle is oriented towards the given direction.
Link copied to clipboard
Sets the triangle's vertices by copying the given attribute values.
Link copied to clipboard