Matrix44Operations class Null safety

Static methods operating on 4x4 matrices packed column major into a Float32List.

Constructors

Matrix44Operations()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

determinant(Float32List matrix, int offset) double
Compute the determinant of the 4x4 matrix starting at offset.
determinant33(Float32List matrix, int offset) double
Compute the determinant of the upper 3x3 of the 4x4 matrix starting at offset.
inverse(Float32List matrix, int offset) double
Compute the inverse of the 4x4 matrix starting at offset.
inverse33(Float32List matrix, int offset) double
Compute the inverse of the upper 3x3 of the 4x4 matrix starting at offset.
multiply(Float32List out, int outOffset, Float32List a, int aOffset, Float32List b, int bOffset) → void
out = a * b; Starting at outOffset, aOffset, and bOffset.
normalize33(Float32List matrix, int offset) → void
Normalize the upper 3x3 of the 4x4 matrix starting at offset.
orthoInverse(Float32List matrix, int offset) → void
Perform a 4x4 transformation matrix inverse. Assumes the upper 3x3 is orthonormal (i.e. does not contain any scale).
transform3(Float32List out, int outOffset, Float32List matrix, int matrixOffset, Float32List vector, int vectorOffset) → void
Transform the 3D vector starting at vectorOffset by the 4x4 matrix starting at matrixOffset. Store result in out starting at outOffset.
transform4(Float32List out, int outOffset, Float32List matrix, int matrixOffset, Float32List vector, int vectorOffset) → void
Transform the 4D vector starting at vectorOffset by the 4x4 matrix starting at matrixOffset. Store result in out starting at outOffset.
transpose(Float32List matrix, int offset) → void
Transpose the 4x4 matrix starting at offset.
transpose33(Float32List matrix, int offset) → void
Transpose the upper 3x3 of the 4x4 matrix starting at offset.
zero(Float32List matrix, int offset) → void