Creates a new Triangle.
The first corner of the triangle. Default is a Vector3 at (0, 0, 0).
The second corner of the triangle. Default is a Vector3 at (0, 0, 0).
The final corner of the triangle. Default is a Vector3 at (0, 0, 0).
The first corner of the triangle. Default is a Vector3 at (0, 0, 0).
The second corner of the triangle. Default is a Vector3 at (0, 0, 0).
The final corner of the triangle. Default is a Vector3 at (0, 0, 0)
Return the area of the triangle.
Return a barycentric coordinate from the given vector.
barycoord
BufferAttribute of vertex data
Integer index
Integer index
Integer index Sets the triangle's vertices from the buffer attribute vertex data.
Generated using TypeDoc
A geometric triangle as defined by three Vector3s representing its three corners. See the ngx3js docs page for details.