Matrix

eu.joaocosta.minart.graphics.Matrix
final case class Matrix(a: Double, b: Double, c: Double, d: Double, e: Double, f: Double)

Affine Transformation matrix of the form:

[a b c]
[d e f]
[0 0 1]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(x: Double, y: Double): (Double, Double)

Applies the transformation to (x, y).

Applies the transformation to (x, y).

Attributes

def apply(x: Int, y: Int): (Int, Int)

Applies the transformation to (x, y).

Applies the transformation to (x, y).

Attributes

inline def applyX(x: Double, y: Double): Double
inline def applyX(x: Int, y: Int): Int
inline def applyY(x: Double, y: Double): Double
inline def applyY(x: Int, y: Int): Int
def multiply(that: Matrix): Matrix

Multiplies this matrix with another matrix.

Multiplies this matrix with another matrix.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product