Matrix4

indigo.shared.datatypes.Matrix4$package.Matrix4
object Matrix4

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Matrix4.type

Members list

Value members

Concrete methods

inline def apply(): Matrix4
inline def apply(matrix: Array[Double]): Matrix4
inline def apply(row0: (Double, Double, Double, Double), row1: (Double, Double, Double, Double), row2: (Double, Double, Double, Double), row3: (Double, Double, Double, Double)): Matrix4
inline def apply(a1: Double, a2: Double, a3: Double, a4: Double, b1: Double, b2: Double, b3: Double, b4: Double, c1: Double, c2: Double, c3: Double, c4: Double, d1: Double, d2: Double, d3: Double, d4: Double): Matrix4
def orthographic(left: Double, right: Double, bottom: Double, top: Double, near: Double, far: Double): Matrix4
def orthographic(width: Double, height: Double): Matrix4
def projection(width: Double, height: Double, depth: Double): Matrix4

Usage Matrix.projection(2 * aspectRatio, 2, 2) (assuming width > height) because the screen by default is 2 x 2 units: -1 to 1

Usage Matrix.projection(2 * aspectRatio, 2, 2) (assuming width > height) because the screen by default is 2 x 2 units: -1 to 1

Attributes

Concrete fields

val one: Matrix4

Extensions

Extensions

extension (m: Matrix4)
def *(other: Matrix4): Matrix4
inline def col1: Array[Double]
inline def col2: Array[Double]
inline def col3: Array[Double]
inline def col4: Array[Double]
inline def data: (Array[Double], Array[Double])
def prettyPrint: String
def rotate(angle: Radians): Matrix4
inline def row1: Array[Double]
inline def row2: Array[Double]
inline def row3: Array[Double]
inline def row4: Array[Double]
def scale(by: Vector2): Matrix4
def scale(by: Vector3): Matrix4
def scale(byX: Double, byY: Double, byZ: Double): Matrix4
def toArray: Array[Double]
def transform(vector: Vector3): Vector3
def translate(byX: Double, byY: Double, byZ: Double): Matrix4
inline def x: Double
inline def y: Double
inline def z: Double
def ~==(other: Matrix4): Boolean