Home > rc-js-util > Mat3
Row major 3x3 matrix.
Signature:
export declare abstract class Mat3<TArray extends TTypedArray> extends ATypedArrayTuple<9, 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 | c3r1 | |
“3” | number | c1r2 | |
“4” | number | c2r2 | |
“5” | number | c3r2 | |
“6” | number | c1r3 | |
“7” | number | c2r3 | |
“8” | number | c3r3 | |
constructor | IMat3Ctor<TArray> | ||
constructors | static |
Map<TTypedArrayCtor, Function> | |
f32 | static |
IMat3Ctor<Float32Array> | |
f64 | static |
IMat3Ctor<Float64Array> | |
i16 | static |
IMat3Ctor<Int16Array> | |
i32 | static |
IMat3Ctor<Int32Array> | |
i8 | static |
IMat3Ctor<Int8Array> | |
TTypeGuardMat3 | true | ||
u16 | static |
IMat3Ctor<Uint16Array> | |
u32 | static |
IMat3Ctor<Uint32Array> | |
u8 | static |
IMat3Ctor<Uint8Array> | |
u8c | static |
IMat3Ctor<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) | ||
getTransformedXLength(_min, _max) | Apply this transform as if it were x in a vec3 to both min and max, return the difference. | |
getTransformedYLength(_min, _max) | Apply this transform as if it were y in a vec3 to both min and max, return the difference. | |
getValueAt(_column, _row) | ||
getVec3MultiplyX(_x) | ||
getVec3MultiplyY(_y) | ||
isEqualTo(_other) | Component-wise equals. | |
multiplyMat3(_mat, _result) | ||
scalarAdd(_value, _result) | ||
scalarMultiply(_value, _result) | ||
setIdentityMatrix() | ||
setRotationMatrix(_angle) | counter clockwise, in radians | |
setRow(_row, _writeFrom) | ||
setScalingMatrix(_scalingFactorX, _scalingFactorY) | ||
setTranslationMatrix(_translationX, _translationY) | ||
setValueAt(_column, _row, _value) |