Home > rc-js-util > Mat4
Row major 4x4 matrix.
Signature:
export declare abstract class Mat4<TArray extends TTypedArray> extends ATypedArrayTuple<16, TArray>
Extends: ATypedArrayTuple
See static properties for constructors. Instances are not an extension of this class, but of the static members.
| Property | Modifiers | Type | Description |
|---|---|---|---|
| “0” | number | c1r1 | |
| “1” | number | c2r1 | |
| “10” | number | c3r3 | |
| “11” | number | c4r3 | |
| “12” | number | c1r4 | |
| “13” | number | c2r4 | |
| “14” | number | c3r4 | |
| “15” | number | c4r4 | |
| “2” | number | c3r1 | |
| “3” | number | c4r1 | |
| “4” | number | c1r2 | |
| “5” | number | c2r2 | |
| “6” | number | c3r2 | |
| “7” | number | c4r2 | |
| “8” | number | c1r3 | |
| “9” | number | c2r3 | |
| constructor | IMat4Ctor<TArray> | ||
| constructors | static |
Map<TTypedArrayCtor, Function> | |
| f32 | static |
IMat4Ctor<Float32Array> | |
| f64 | static |
IMat4Ctor<Float64Array> | |
| i16 | static |
IMat4Ctor<Int16Array> | |
| i32 | static |
IMat4Ctor<Int32Array> | |
| i8 | static |
IMat4Ctor<Int8Array> | |
| TTypeGuardMat4 | true | ||
| u16 | static |
IMat4Ctor<Uint16Array> | |
| u32 | static |
IMat4Ctor<Uint32Array> | |
| u8 | static |
IMat4Ctor<Uint8Array> | |
| u8c | static |
IMat4Ctor<Uint8ClampedArray> |
| Method | Modifiers | Description |
|---|---|---|
| castToBaseType() | Although the typed array tuples extend a typed array, they are not structurally compatible. This function returns the argument passed without modification but cast as the underlying storage type, e.g. Float32Array. | |
| copyFromBuffer(_memoryDataView, _pointer, _littleEndian) | If endianness is not supplied the platform’s endianness will be used. | |
| copyToBuffer(_memoryDataView, _pointer, _littleEndian) | If endianness is not supplied the platform’s endianness will be used. | |
| getCtor(ctor) | static |
|
| getLoggableValue() | ||
| getRow(_row, _writeTo) | ||
| getValueAt(_column, _row) | ||
| isEqualTo(_other) | Component-wise equals. | |
| setIdentityMatrix() | ||
| setRow(_row, _writeFrom) | ||
| setValueAt(_column, _row, _value) |