Constructs a rotation and trnslation matrix that positions at the eye vector, looking at the center vector, with the given up vector.
Constructs a rotation and trnslation matrix that positions at the eye vector, looking at the center vector, with the given up vector.
None of these vectors need normalization.
the eye vector - the position we are at.
the center vector - the point we are looking at.
the up vector - which direction points up.
Constructs an orthographic projection martix
Constructs an orthographic projection martix
the left plane position
the right plane position
the bottom plane position
the top plane position
the near plane position
the far plane position
Construct a perspective projection matrix
Construct a perspective projection matrix
the fov of the y, in radians.
the aspect ratio of the viewport
the near plane position
the far plane position
as the near plane approaches 0, depth buffer precision approaches 0.
Returns the rotation matrix about the given angle and axis.
Returns the rotation matrix about the given angle and axis.
the angle to rotate, in radians.
the axis vector to rotate around, must be normalized.
Returns the rotation matrix about the given angle and axis.
Returns the rotation matrix about the given angle and axis.
the angle to rotate, in radians.
the x-component of the axis vector to rotate around, must be normalized.
the y-component of the axis vector to rotate around, must be normalized.
the z-component of the axis vector to rotate around, must be normalized.
Returns the rotation matrix rotating around the X-axis.
Returns the rotation matrix rotating around the X-axis.
Returns the rotation matrix rotating around the Y-axis.
Returns the rotation matrix rotating around the Y-axis.
Returns the rotation matrix rotating around the Z-axis.
Returns the rotation matrix rotating around the Z-axis.
Returns a scale matrix
Returns a scale matrix
the scale vector
Returns a scale matrix
Returns a scale matrix
the x-scale
the y-scale
the z-scale
Returns a translate matrix
Returns a translate matrix
the translation vector
Returns a translate matrix
Returns a translate matrix
the x-translation
the y-translation
the z-translation