Mat3F
Description
A 3x3 matrix with 32-bit floating-point precision.
/ \ | M11 M12 M13 | | M21 M22 M23 | | M31 M32 M33 | \ /
- See also
Public / Constructors
Rotate
2 overloads
Returns a rotation matrix (counter-clockwise around the given axis for right-handed coordinate system when viewing from positive half-space).
Returns a rotation matrix (counter-clockwise around the given axis for right-handed coordinate system when viewing from positive half-space).
RotateX
Returns a rotation matrix (counter-clockwise around X-axis for right-handed coordinate system when viewing from positive half-space).
RotateY
Returns a rotation matrix (counter-clockwise around Y-axis for right-handed coordinate system when viewing from positive half-space).
RotateZ
Returns a rotation matrix (counter-clockwise around Z-axis for right-handed coordinate system when viewing from positive half-space).
Translate
2 overloads
Returns a homogeneous 2D translation matrix.
Returns a homogeneous 2D translation matrix.
Warp
Computes a 2D homogeneous warp matrix that transforms the unit square into a convex quadrilateral.
The unit square is defined as follows:
A ---- B A := (0|0) | | B := (1|0) | | C := (1|1) D ---- C D := (0|1)
Use the inverse warp matrix to transform vertices to the unit square. Combine two warp matrices to transform from one quadrilateral to another.