Vec3 Closest(Vec3 to)

Vec3 to Any point in the same coordinate space as the Ray.
RETURNS: Vec3 The point on the ray that’s closest to the given point.

Calculates the point on the Ray that’s closest to the given point! This can be in front of, or behind the ray’s starting position.

Found an issue with these docs, or have some additional questions? Create an Issue on Github!