UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

75 lines 2.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Mat4 = void 0; const a_typed_array_tuple_js_1 = require("../a-typed-array-tuple.js"); const get_mat4_ctor_js_1 = require("./get-mat4-ctor.js"); const rtti_interop_js_1 = require("../../../runtime/rtti-interop.js"); /** * @public * Row major 4x4 matrix. * * @remarks * See static properties for constructors. Instances are not an extension of this class, but of the static members. */ class Mat4 extends a_typed_array_tuple_js_1.ATypedArrayTuple { static getCtor(ctor) { return Mat4.constructors.get(ctor); } /** * Component-wise equals. */ isEqualTo(_other) { throw new Error(); } setIdentityMatrix() { throw new Error(); } getValueAt(_column, _row) { throw new Error(); } setValueAt(_column, _row, _value) { throw new Error(); } getRow(_row, _writeTo) { throw new Error(); } setRow(_row, _writeFrom) { throw new Error(); } getLoggableValue() { throw new Error(); } /** * If endianness is not supplied the platform's endianness will be used. */ copyFromBuffer(_memoryDataView, _pointer, _littleEndian) { throw new Error(); } /** * If endianness is not supplied the platform's endianness will be used. */ copyToBuffer(_memoryDataView, _pointer, _littleEndian) { throw new Error(); } /** * 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. */ castToBaseType() { throw new Error(); } } exports.Mat4 = Mat4; Mat4.f64 = (0, get_mat4_ctor_js_1.getMat4Ctor)(Float64Array); Mat4.f32 = (0, get_mat4_ctor_js_1.getMat4Ctor)(Float32Array); Mat4.i64 = null; // not supported Mat4.u64 = null; // not supported Mat4.u32 = (0, get_mat4_ctor_js_1.getMat4Ctor)(Uint32Array); Mat4.i32 = (0, get_mat4_ctor_js_1.getMat4Ctor)(Int32Array); Mat4.u16 = (0, get_mat4_ctor_js_1.getMat4Ctor)(Uint16Array); Mat4.i16 = (0, get_mat4_ctor_js_1.getMat4Ctor)(Int16Array); Mat4.u8c = (0, get_mat4_ctor_js_1.getMat4Ctor)(Uint8ClampedArray); Mat4.u8 = (0, get_mat4_ctor_js_1.getMat4Ctor)(Uint8Array); Mat4.i8 = (0, get_mat4_ctor_js_1.getMat4Ctor)(Int8Array); Mat4.constructors = (0, rtti_interop_js_1.populateTypedArrayConstructorMap)(Mat4); //# sourceMappingURL=mat4.js.map