diff options
| author | jussi | 2025-06-02 20:49:51 +0300 |
|---|---|---|
| committer | jussi | 2025-06-02 20:49:51 +0300 |
| commit | 5b8af05e96b33f2d032cc31a329b89e1231d5502 (patch) | |
| tree | 9ea0f70bae6c77cfc0edeb3f4b0b11fa9fb6be94 /API.md | |
| parent | e26bb8603c5a4053f2790fc7d6ce02b3179f5289 (diff) | |
| download | reilua-enhanced-5b8af05e96b33f2d032cc31a329b89e1231d5502.tar.gz reilua-enhanced-5b8af05e96b33f2d032cc31a329b89e1231d5502.tar.bz2 reilua-enhanced-5b8af05e96b33f2d032cc31a329b89e1231d5502.zip | |
Frustum math from raylib extras.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 38 |
1 files changed, 37 insertions, 1 deletions
@@ -3682,7 +3682,7 @@ Default projection matrix near cull distance --- -> RL_CULL_DISTANCE_FAR = 1000 +> RL_CULL_DISTANCE_FAR = 1000.0 Default projection matrix far cull distance @@ -10746,6 +10746,42 @@ Check whether two given quaternions are almost equal --- +## Math - Frustum + +--- + +> frustum = RL.ExtractFrustum( Matrix projection, Matrix modelview ) + +Extract frustum from projection and modelView matrices. + +- Success return Vector4{} + +--- + +> inFrustum = RL.PointInFrustum( Vector4{} frustum, Vector3 position ) + +Check if point inside frustum + +- Success return bool + +--- + +> inFrustum = RL.SphereInFrustum( Vector4{} frustum, Vector3 position ) + +Check if sphere inside frustum + +- Success return bool + +--- + +> inFrustum = RL.AABBInFrustum( Vector4{} frustum, Vector3 min, Vector3 max ) + +Check if AABB inside frustum + +- Success return bool + +--- + ## Gui - Global gui state control functions --- |
