Frustrum: Difference between revisions

From Crumbled World Wiki
(Created page with "{{:SphereExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |Frustrum(Vec3 cameraPos, Vec3 corner1, Vec3 corner2, Vec3 corner3, Vec3 corner4) | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |bool |sphereInFrustum(Sphere aSphere) | |- |float |sphereInFrustumDist(Sphere aSphere) | |- |int |[...")
 
(No difference)

Latest revision as of 13:36, 5 July 2025

SphereExampleCode

Constructor

function description
Frustrum(Vec3 cameraPos, Vec3 corner1, Vec3 corner2, Vec3 corner3, Vec3 corner4)

Functions

return function description
bool sphereInFrustum(Sphere aSphere)
float sphereInFrustumDist(Sphere aSphere)
int boxInFrustrum(Box aBox) return 0 if outside, 1 if partly inside and 2 if completely inside.
bool pointInFrustum(Vec3 point)