raySphere
fun raySphere(ray: Ray, sphere: BoundingSphere, result: Interval? = definedExternally): Interval(source)
Computes the intersection points of a ray with a sphere.
Return
The interval containing scalar points along the ray or undefined if there are no intersections.
Parameters
ray
The ray.
sphere
The sphere.
result
The result onto which to store the result.