Triangle
A geometric triangle as defined by three vectors.
Constructor
Triangle( a, b, c )
Sets the triangle's vectors to the passed vectors.
Properties
The second
Vector3 of the triangle.
Methods
Sets the triangle's vectors to the vectors in the array.
Sets the triangle's vectors to the passed vectors.
optionalTarget -- Optional
Vector3 target to set the result.
Return the calculated normal of the triangle.
point --
Vector3
optionalTarget -- Optional
Vector3 target to set the result.
Return a new copy of this triangle.
Return the area of the triangle.
optionalTarget -- Optional
Vector3 target to set the result.
Return the midpoint of the triangle. Optionally sets a target vector.
Checks to see if two triangles are equal (share the same vectors).
optionalTarget -- Optional
Plane target to set the result.
Return a
plane based on the triangle. Optionally sets a target plane.
Checks to see if the passed vector is within the triangle.
point --
Vector3
optionalTarget -- Optional
Vector3 target to set the result.
Returns the closest point on the triangle.
Copies the values of the vertices of the passed triangle to this triangle.
Source
src/math/Triangle.js
Edit