Raised when an error occurs (usually a division by zero)
Module OgamlMath.Matrix2D
Provides easy creation and manipulation of 2D rendering matricesOptimized operations on 2D (3x3) float matrices
Simple Matrices
Type of 3x3 matrices stored in a flat, column-major array
Zero matrix
Identity matrix
Builds a translation matrix from a vector
See : OgamlMath.Vector2f
See : OgamlMath.Vector2f
Builds a scaling matrix from a vector
See : OgamlMath.Vector2f
See : OgamlMath.Vector2f
Builds a rotation matrix from an angle
Efficiently builds a transformation matrix
Matrix Operations
Computes the product of two matrices
Transposes a matrix. The original is not modified.
Translates a matrix by a vector. The original matrix is not modified.
See : OgamlMath.Vector2f
See : OgamlMath.Vector2f
Scales a matrix by a vector. The original matrix is not modified.
See : OgamlMath.Vector2f
See : OgamlMath.Vector2f
Rotates a matrix by an angle. The original matrix is not modified.
Computes the (right-)product of a matrix with a column vector
Returns a pretty-printed string (not for serialization)
Rendering Matrices Creation
Builds an orthographic projection matrix englobing a screen
Builds the inverse of an orthographic projection matrix
Other functions
Returns a matrix as a flat bigarray. Used internally by OGAML, it should not be necessary for your programs.