Mat3D
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.