Camera

A basis of a camera.

Members

Functions

Project
Matrix4x4 Project(float width, float height)

Creates a dimension dependant projection. (Recommended)

ProjectOrthographic
Matrix4x4 ProjectOrthographic(float width, float height)

Creates an othrographic projection with the specified width and height.

ProjectOrthographicInv
Matrix4x4 ProjectOrthographicInv(float width, float height)

Creates an othrographic projection with the specified width and height.

ProjectPerspective
Matrix4x4 ProjectPerspective(float width, float fov, float height)

Creates an perspective projection with the specified width and height.

Update
void Update()

Update the camera rotation, scale and translation.

Properties

Matrix
Matrix4x4 Matrix [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Matrix
Matrix4x4 Matrix [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

matrix
Matrix4x4 matrix;
Undocumented in source.
zfar
float zfar;
Undocumented in source.
znear
float znear;
Undocumented in source.

Meta