extensions library

Constants

degrees2Radians → const double
Constant factor to convert and angle from degrees to radians.

Functions

setOrthographicMatrix(Matrix4 orthographicMatrix, double left, double right, double bottom, double top, double near, double far) → void
Constructs an OpenGL orthographic projection matrix in orthographicMatrix.
setPerspectiveMatrix(Matrix4 perspectiveMatrix, double fovYRadians, double aspectRatio, double zNear, double zFar) → void
Constructs an OpenGL perspective projection matrix in perspectiveMatrix.
setViewMatrix(Matrix4 viewMatrix, Vector3 cameraPosition, Vector3 cameraFocusPosition, Vector3 upDirection) → void
Constructs an OpenGL view matrix in viewMatrix. View transformation is the inverse of the model transformation. View matrix is commonly used to compute the camera location/orientation into the full model-view stack.

Typedefs

ImmutableVector2 = ({double x, double y})
Represents an immutable Vector2.
ImmutableVector3 = ({double x, double y, double z})
Represents an immutable Vector3.
ImmutableVector4 = ({double w, double x, double y, double z})
Represents an immutable Vector3.