Matrix

class Matrix(val m00: Float, val m01: Float, val m10: Float, val m11: Float, val m20: Float = 0.0f, val m21: Float = 0.0f)

A matrix for transposing 2D points. The right column of the matrix is not stored, as it always 0,0,1.

Constructors

Link copied to clipboard
constructor(m00: Float, m01: Float, m10: Float, m11: Float, m20: Float = 0.0f, m21: Float = 0.0f)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns this matrix as a flat (1 dimension) array of floats of size 9. Elements 2,5 and 8 are the un-stored right column of the 3x3 matrix and are always zero.

Link copied to clipboard
val m00: Float
Link copied to clipboard
val m01: Float
Link copied to clipboard
val m10: Float
Link copied to clipboard
val m11: Float
Link copied to clipboard
val m20: Float = 0.0f
Link copied to clipboard
val m21: Float = 0.0f

Functions

Link copied to clipboard
fun rotate(radians: Double): Matrix
fun rotate(radians: Float): Matrix
Link copied to clipboard
fun scale(scale: Float): Matrix
fun scale(x: Float, y: Float): Matrix
Link copied to clipboard
operator fun times(right: Matrix): Matrix
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard