Home > rc-js-util > Mat2
Row major 2x2 matrix.
Signature:
export declare abstract class Mat2<TArray extends TTypedArray> extends ATypedArrayTuple<4, 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 | |
“2” | number | c2r2 | |
“3” | number | c2r2 | |
constructor | IMat2Ctor<TArray> | ||
constructors | static |
Map<TTypedArrayCtor, Function> | |
f32 | static |
IMat2Ctor<Float32Array> | |
f64 | static |
IMat2Ctor<Float64Array> | |
i16 | static |
IMat2Ctor<Int16Array> | |
i32 | static |
IMat2Ctor<Int32Array> | |
i8 | static |
IMat2Ctor<Int8Array> | |
TTypeGuardMat2 | true | ||
u16 | static |
IMat2Ctor<Uint16Array> | |
u32 | static |
IMat2Ctor<Uint32Array> | |
u8 | static |
IMat2Ctor<Uint8Array> | |
u8c | static |
IMat2Ctor<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) | ||
getVec2MultiplyX(_x) | ||
isEqualTo(_other) | Component-wise equals. | |
multiplyMat2(_mat, _result) | ||
scalarAdd(_value, _result) | ||
scalarMultiply(_value, _result) | ||
setIdentityMatrix() | ||
setRow(_row, _writeFrom) | ||
setScalingMatrix(_scalingFactor) | ||
setTranslationMatrix(_translation) | ||
setValueAt(_column, _row, _value) | ||
update(_args) |