getPoint
Computes the point along the ray given by r(t) = o + t*d, where o is the origin of the ray and d is the direction.
//Get the first intersection point of a ray and an ellipsoid.
const intersection = IntersectionTests.rayEllipsoid(ray, ellipsoid);
const point = Ray.getPoint(ray, intersection.start);
Content copied to clipboard
Return
The modified result parameter, or a new instance if none was provided.
Parameters
ray
The ray.
t
A scalar value.
result
The object in which the result will be stored.