Intersection structs and functions

Namespace: dmIntersection Language: C++ Type: Defold C++ File: intersection.h Source: engine/dlib/src/dmsdk/dlib/intersection.h Include: dmsdk/dlib/intersection.h

Intersection math structs and functions

API

CreateFrustumFromMatrix

Type: FUNCTION Constructs a dmIntersection::Frustum from a View*Projection matrix

Parameters

Returns

DistanceToPlane

Type: FUNCTION Returns the closest distance between a plane and a position

Parameters

Returns

Frustum

Type: STRUCT Frustum

Notes

Members

Plane

Type: TYPEDEF Plane struct (currently an alias for dmVMath::Vector4)

TestFrustumOBB

Type: FUNCTION Tests intersection between a frustum and an oriented bounding box (OBB)

Parameters

Returns

TestFrustumPoint

Type: FUNCTION Tests intersection between a frustum and a point

Parameters

Returns

TestFrustumSphere

Type: FUNCTION Tests intersection between a frustum and a sphere

Parameters

Returns

TestFrustumSphere

Type: FUNCTION Tests intersection between a frustum and a sphere

Parameters

Returns

TestFrustumSphereSq

Type: FUNCTION Tests intersection between a frustum and a sphere

Parameters

Returns

TestFrustumSphereSq

Type: FUNCTION Tests intersection between a frustum and a sphere

Parameters

Returns