intersectSphere

fun intersectSphere(sphere: Sphere, target: Vector3): Vector3?

Intersects this ray with sphere, writing the intersection point into target.

Return

target on a hit, or null if there is no intersection.