Readonlyv0The first 3-dimensional vector of the triangle.
Readonlyv1The second 3-dimensional vector of the triangle.
Readonlyv2The third 3-dimensional vector of the triangle.
Sets the specified triangle to the supplied 3-dimensional vectors.
Self for chaining.
A triangle defined by three Vec3 vectors.
The vertices are v0, v1 and v2; the constructor and set copy the vectors they are given. intersectsRay tests a Ray whose direction is normalized against either face of the triangle and writes the hit point into an optional vector. It is the building block for precise picking against mesh geometry.
Example