Murl Engine Lua Addon API  Version 1.0 beta
Murl.Math.Frustum

A frustum describing 6 planes.


Table members

Enumerations


ClipPlane

Enumeration of the frustum planes.

Murl.Math.Frustum.CLIP_PLANE_LEFTThe left plane.
Murl.Math.Frustum.CLIP_PLANE_RIGHTThe right plane.
Murl.Math.Frustum.CLIP_PLANE_TOPThe top plane.
Murl.Math.Frustum.CLIP_PLANE_BOTTOMThe bottom plane.
Murl.Math.Frustum.CLIP_PLANE_NEARThe near plane.
Murl.Math.Frustum.CLIP_PLANE_FARThe far plane.
Murl.Math.Frustum.NUM_CLIP_PLANESThe number of planes.


Functions


Murl.Math.Frustum.new()

The default constructor.

Murl.Math.Frustum new()

Returns
Murl.Math.Frustum

Murl.Math.Frustum.new(projectionMatrix)

Constructor taking a projection matrix.

Murl.Math.Frustum new(Murl.Math.Matrix projectionMatrix)

Parameters
projectionMatrixThe projection matrix.
Returns
Murl.Math.Frustum


Methods


Set(projectionMatrix)

Set the frustum planes by a projection matrix.

Set(Murl.Math.Matrix projectionMatrix)

Parameters
projectionMatrixThe projection matrix.

GetClipPlane(plane)

Get a plane by identifier.

Murl.Math.Plane GetClipPlane(Murl.Math.Frustum.ClipPlane plane)

Parameters
planeThe enumerated plane identifer.
Returns
Murl.Math.Plane The plane.