GeometrySingleton.segmentIntersectsSphere

Checks if the segment (from, to) intersects the sphere that is located at sphere_position and has radius sphere_radius. If no, returns an empty PoolVector3Array. If yes, returns a PoolVector3Array containing the point of intersection and the sphere's normal at the point of intersection.

struct GeometrySingleton
@nogc nothrow
PoolVector3Array
segmentIntersectsSphere
(
in Vector3 from
,
in Vector3 to
,
in Vector3 sphere_position
,
in double sphere_radius
)

Meta