docs: ray sphere docs improvements

This commit is contained in:
Recep Aslantas
2024-03-29 08:05:10 +03:00
parent 55521ecd61
commit 9df36ce005
3 changed files with 10 additions and 1 deletions

View File

@@ -36,6 +36,8 @@ Functions documentation
ray sphere intersection
returns false if there is no intersection if true:
- 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