Matrix4d

value class Matrix4d(val m00: Double, val m01: Double, val m02: Double, val m03: Double, val m10: Double, val m11: Double, val m12: Double, val m13: Double, val m20: Double, val m21: Double, val m22: Double, val m23: Double, val m30: Double, val m31: Double, val m32: Double, val m33: Double)(source)

Immutable 4x4 matrix with row/column-named components, in row-major constructor order. Multiplies column vectors: (a * b) * point applies b first. Use identity() for the identity matrix.

Constructors

Link copied to clipboard
constructor(m00: Double, m01: Double, m02: Double, m03: Double, m10: Double, m11: Double, m12: Double, m13: Double, m20: Double, m21: Double, m22: Double, m23: Double, m30: Double, m31: Double, m32: Double, m33: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val m00: Double
Link copied to clipboard
val m01: Double
Link copied to clipboard
val m02: Double
Link copied to clipboard
val m03: Double
Link copied to clipboard
val m10: Double
Link copied to clipboard
val m11: Double
Link copied to clipboard
val m12: Double
Link copied to clipboard
val m13: Double
Link copied to clipboard
val m20: Double
Link copied to clipboard
val m21: Double
Link copied to clipboard
val m22: Double
Link copied to clipboard
val m23: Double
Link copied to clipboard
val m30: Double
Link copied to clipboard
val m31: Double
Link copied to clipboard
val m32: Double
Link copied to clipboard
val m33: Double

Functions

Link copied to clipboard
operator fun get(row: Int, column: Int): Double
Link copied to clipboard
operator fun times(other: Matrix4d): Matrix4d
operator fun times(vector: Vector4d): Vector4d

operator fun times(point: Vector3d): Vector4d

Lift a point with w=1, retaining the result's homogeneous w.

Link copied to clipboard

Lift a direction with w=0, so affine translation has no effect.

Link copied to clipboard
Link copied to clipboard