Matrix33

class Matrix33(mat: Float)

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.

See also

Constructors

Link copied to clipboard
constructor(vararg mat: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Matrix33 elements are in row-major order.

Functions

Link copied to clipboard

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

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
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