Matrix44Operations class Null safety
Static methods operating on 4x4 matrices packed column major into a Float32List.
Constructors
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 atoffset
. -
determinant33(
Float32List matrix, int offset) → double -
Compute the determinant of the upper 3x3 of the 4x4
matrix
starting atoffset
. -
inverse(
Float32List matrix, int offset) → double -
Compute the inverse of the 4x4
matrix
starting atoffset
. -
inverse33(
Float32List matrix, int offset) → double -
Compute the inverse of the upper 3x3 of the 4x4
matrix
starting atoffset
. -
multiply(
Float32List out, int outOffset, Float32List a, int aOffset, Float32List b, int bOffset) → void -
out
=a
*b
; Starting atoutOffset
,aOffset
, andbOffset
. -
normalize33(
Float32List matrix, int offset) → void -
Normalize the upper 3x3 of the 4x4
matrix
starting atoffset
. -
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 atvectorOffset
by the 4x4matrix
starting atmatrixOffset
. Store result inout
starting atoutOffset
. -
transform4(
Float32List out, int outOffset, Float32List matrix, int matrixOffset, Float32List vector, int vectorOffset) → void -
Transform the 4D
vector
starting atvectorOffset
by the 4x4matrix
starting atmatrixOffset
. Store result inout
starting atoutOffset
. -
transpose(
Float32List matrix, int offset) → void -
Transpose the 4x4
matrix
starting atoffset
. -
transpose33(
Float32List matrix, int offset) → void -
Transpose the upper 3x3 of the 4x4
matrix
starting atoffset
. -
zero(
Float32List matrix, int offset) → void