docs: ray sphere docs improvements

This commit is contained in:
Recep Aslantas
2024-03-29 08:10:56 +03:00
parent 9df36ce005
commit 1337e9cdfb
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ Functions documentation
- t1 > 0, t2 > 0: ray intersects the sphere at t1 and t2 both ahead of the origin
- t1 < 0, t2 > 0: ray starts inside the sphere, exits at t2
- t1 < 0, t2 < 0: no intersection ahead of the ray
- t1 < 0, t2 < 0: no intersection ahead of the ray ( returns false )
- the caller can check if the intersection points (t1 and t2) fall within a
specific range (for example, tmin < t1, t2 < tmax) to determine if the
intersections are within a desired segment of the ray