VRageMath.BoundingSphereD.IntersectRaySphere - bimbam2103/space_engineers GitHub Wiki
← Index ← Namespace Index ← BoundingSphereD
public bool IntersectRaySphere(RayD ray, out double tmin, out double tmax)
NOTE: This function doesn't calculate the normal because it's easily derived for a sphere (p - center).