Matrix4

object Matrix4
Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def apply(): Matrix4
def apply(row0: (Double, Double, Double, Double), row1: (Double, Double, Double, Double), row2: (Double, Double, Double, Double), row3: (Double, Double, Double, Double)): Matrix4
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

def rotation(angleInRadians: Radians): Matrix4

This is really z-rotation

This is really z-rotation

def scale(amount: Vector3): Matrix4
def scale(sx: Double, sy: Double, sz: Double): Matrix4
def translate(amount: Vector3): Matrix4
def translate(tx: Double, ty: Double, tz: Double): Matrix4
def transpose(matrix4: Matrix4): Matrix4

Concrete fields

lazy val `derived$CanEqual`: CanEqual[Matrix4, Matrix4]
val one: Matrix4