Matrix4

object Matrix4
class Object
trait Matchable
class Any

Value members

Concrete methods

inline
def apply(): Matrix4
inline
def apply(matrix: List[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

Concrete fields

Extensions

Extensions

extension (m: Matrix4)
def *(other: Matrix4): Matrix4
inline
def col1: List[Double]
inline
def col2: List[Double]
inline
def col3: List[Double]
inline
def col4: List[Double]
inline
def data: (List[Double], List[Double])
def prettyPrint: String
def rotate(angle: Radians): Matrix4
inline
def row1: List[Double]
inline
def row2: List[Double]
inline
def row3: List[Double]
inline
def row4: List[Double]
def scale(byX: Double, byY: Double, byZ: Double): Matrix4
def toList: List[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
@SuppressWarnings(scala.Array.apply[java.lang.String]("scalafix:DisableSyntax.var", "scalafix:DisableSyntax.while")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])))
def ~==(other: Matrix4): Boolean