Matrix33

value class Matrix33

Matrix holds a 3x3 matrix for transforming coordinates. This allows mapping Point and vectors with translation, scaling, skewing, rotation, and perspective.

Matrix includes a hidden variable that classifies the type of matrix to improve performance. Matrix is not thread safe unless getType() is called first.

Parameters

mat

9-element array of floats representing the matrix in row-major order

`
| scaleX   skewX  transX |
|  skewY  scaleY  transY |
| persp0  persp1  persp2 |
`
*

See also

Constructors

Link copied to clipboard
constructor(m00: Float, m01: Float, m02: Float, m10: Float, m11: Float, m12: Float, m20: Float, m21: Float, m22: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard

When converting from Matrix33 to Matrix44, the third row and column remain as identity:

Link copied to clipboard

Creates Matrix33 by multiplying this by other. This can be thought of mapping by other before applying Matrix.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String