Matrix

data class Matrix(val a: Double, val b: Double, val c: Double, val d: Double, val tx: Double = 0.0, val ty: Double = 0.0) : IsAlmostEquals<Matrix>

Constructors

Link copied to clipboard
constructor(a: Float, b: Float, c: Float, d: Float, tx: Float = 0.0f, ty: Float = 0.0f)
constructor(a: Int, b: Int, c: Int, d: Int, tx: Int = 0, ty: Int = 0)
constructor(a: Double, b: Double, c: Double, d: Double, tx: Double = 0.0, ty: Double = 0.0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val a: Double
Link copied to clipboard
val b: Double
Link copied to clipboard
val c: Double
Link copied to clipboard
val d: Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tx: Double = 0.0
Link copied to clipboard
val ty: Double = 0.0
Link copied to clipboard

Functions

Link copied to clipboard
fun clone(): Matrix
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Transform point without translation

Link copied to clipboard
Link copied to clipboard
open override fun isAlmostEquals(other: Matrix, epsilon: Double): Boolean
Link copied to clipboard
fun isAlmostIdentity(epsilon: Double = 1.0E-5): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun prerotated(angle: Angle): Matrix
Link copied to clipboard
fun prescaled(scale: Scale): Matrix
fun prescaled(scaleX: Double, scaleY: Double = scaleX): Matrix
fun prescaled(scaleX: Float, scaleY: Float = scaleX): Matrix
fun prescaled(scaleX: Int, scaleY: Int = scaleX): Matrix
Link copied to clipboard
fun preskewed(skewX: Angle, skewY: Angle): Matrix
Link copied to clipboard
fun pretranslated(deltaX: Double, deltaY: Double): Matrix
fun pretranslated(deltaX: Float, deltaY: Float): Matrix
fun pretranslated(deltaX: Int, deltaY: Int): Matrix
Link copied to clipboard
fun rotated(angle: Angle): Matrix
Link copied to clipboard
fun scaled(scale: Scale): Matrix
fun scaled(scaleX: Double, scaleY: Double = scaleX): Matrix
fun scaled(scaleX: Float, scaleY: Float = scaleX): Matrix
fun scaled(scaleX: Int, scaleY: Int = scaleX): Matrix
Link copied to clipboard
fun skewed(skewX: Angle, skewY: Angle): Matrix
Link copied to clipboard
operator fun times(other: Matrix): Matrix
operator fun times(scale: Double): Matrix
operator fun times(scale: Float): Matrix
Link copied to clipboard
fun toArray(value: DoubleArray, offset: Int = 0)
fun toArray(value: FloatArray, offset: Int = 0)
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard
inline fun transform(p: Vector2D): Vector2D
inline fun transform(p: Vector2F): Vector2F
Link copied to clipboard
fun Matrix.transformRectangle(rectangle: Rectangle, delta: Boolean = false): Rectangle
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard