Checks if the Ray intersects a Box Reference: https://www.scratchapixel.com/lessons/3d-basic-rendering/minimal-ray-tracer-rendering-simple-shapes/ray-box-intersection
The Box to check for intersection
A Vector3 containing the intersection point or null if there is no intersection
Checks if the Ray intersects a Plane Reference: https://www.scratchapixel.com/lessons/3d-basic-rendering/minimal-ray-tracer-rendering-simple-shapes/ray-plane-and-ray-disk-intersection
The Plane to check for intersection
A Vector3 containing the intersection point or null if there is no intersection
Checks if the Ray intersects a Sphere Reference: https://www.scratchapixel.com/lessons/3d-basic-rendering/minimal-ray-tracer-rendering-simple-shapes/ray-sphere-intersection
The Sphere to check for intersection
A Vector3 containing the intersection point or null if there is no intersection
Implementation of the Möller–Trumbore triangle intersection algorithm https://en.wikipedia.org/wiki/Möller–Trumbore_intersection_algorithm
The intersection point if the ray intersects the triangle, otherwise null
Computes the intersection between a ray and a series of triangles
Array of either Vector3 objects or numbers representing the vertex positions
Array of indices representing the triangle faces
The intersection point if the ray intersects the triangles, otherwise null
Constructor of the Ray3 class