The direction of the ray. Make sure the direction is normalized.
The origin of the ray.
Return distances from given ray to sphere.
The returning distance can be negative.
The first returning value will be the distance of the incident point.
If the ray does not intersect with sphere, it will return null
.
A target sphere
Generated using TypeDoc
A 3D ray.