The Matrix4f class is 4 X 4 matrix.
Definition matrix.h:226
The MinMax class inherits from Tuple, specilizing the template parameters to float for element type.
Definition minmax.h:31
The class Vector2f inherits from the templated class of Vector2, and the template parameters are spec...
Definition vector.h:268
void setAspect(Matrix4f &matrix, float aspect)
Scales the width of a orthographic view based on the desired aspect ratio while keeping the height co...
void setOrthoSize(Matrix4f &matrix, const Vector2f &size)
Modifying a projection matrix with a desired size of orthographic view.
MinMax getOrthoMinMax(const Matrix4f &matrix)
Calculates the near and far clipping planes of the orthographic projection.
float getAspect(const Matrix4f &matrix)
Gets the aspect ratio of an orthographic projection matrix.
Vector2f getOrthoSize(const Matrix4f &matrix)
Calculates the width and height of the orthographic projection matrix, and returns a Vector2f object ...
void setOrthoMinMax(Matrix4f &matrix, const MinMax &mm)
Modifying a projection matrix with a desired near and far clipping planes for the orthographic projec...