final case class CheapMatrix4(mat: Array[Double])

CheapMatrix4 is intended for use internally within Indigo, but remains available for general use. You are advised to use Matrix4 generally. CheapMatrix4 carries over much of the functionality of Matrix4 but is based on mutable data for performance reasons, and takes some shortcuts during multiplication to reduce work based on how the engine itself behaves.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def *(other: Array[Double]): CheapMatrix4
def scale(byX: Double, byY: Double, byZ: Double): CheapMatrix4
def toArray: Array[Double]
def transform(vector: Vector3): Vector3
def translate(byX: Double, byY: Double, byZ: Double): CheapMatrix4

Inherited methods

def productElementNames: Iterator[String]
Inherited from
def productIterator: Iterator[Any]
Inherited from

Concrete fields

lazy val data: (List[Double], List[Double])
lazy val x: Double
lazy val y: Double