Murl Engine Lua Addon API  Version 1.0 beta
Murl.Input.IProjection

The IProjection interface.

The IProjection object can be created by the ITouchableHandler object.


Table members

Methods


SetType(type)

Set the projection type.

Boolean SetType(Murl.IEnums.ProjectionType type)

Parameters
typeThe projection type.
Returns
Boolean true if successful.

GetType()

Get the projection type.

Murl.IEnums.ProjectionType GetType()

Returns
Murl.IEnums.ProjectionType The projection type.

SetDepthOrder(depthOrder)

Set the absolute depth order.

Boolean SetDepthOrder(Integer depthOrder)

Parameters
depthOrderThe absolute order.
Returns
Boolean true if successful.

GetDepthOrder()

Get the absolute depth order.

Integer GetDepthOrder()

Returns
Integer The absolute order.

SetWorldTransform(transform)

Set the world transformation matrix.

Boolean SetWorldTransform(Murl.Math.Matrix transform)

Parameters
transformThe world transformation matrix.
Returns
Boolean true if successful.

SetInvertedProjection(invertedProjection, nearPlane, farPlane)

Set the inverted projection matrix.

Boolean SetInvertedProjection(Murl.Math.Matrix invertedProjection, Number nearPlane, Number farPlane)

Parameters
invertedProjectionThe inverted projection matrix.
nearPlaneThe absolute distance of the near clipping plane.
farPlaneThe absolute distance of the far clipping plane.
Returns
Boolean true if successful.

GetWorldTransform()

Get the world transformation matrix.

Murl.Math.Matrix GetWorldTransform()

Returns
Murl.Math.Matrix The world transformation matrix.

GetInvertedProjection()

Get the inverted projection matrix.

Murl.Math.Matrix GetInvertedProjection()

Returns
Murl.Math.Matrix The inverted projection matrix.