Frustrum

From Crumbled World Wiki
Revision as of 13:36, 5 July 2025 by Anders (talk | contribs) (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 |[...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)