math-rust-lib 0.1.3 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/math_rust_lib.d.ts +2 -0
- package/math_rust_lib.js +4 -718
- package/math_rust_lib_bg.js +729 -0
- package/math_rust_lib_bg.wasm +0 -0
- package/package.json +8 -2
package/math_rust_lib.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export class Mat4 {
|
|
|
6
6
|
[Symbol.dispose](): void;
|
|
7
7
|
static from_values(val: Float32Array): Mat4;
|
|
8
8
|
static perspective(fov: number, aspect: number, near: number, far: number): Mat4;
|
|
9
|
+
get_position(): Vec3;
|
|
9
10
|
set_identity(): Mat4;
|
|
10
11
|
scale_in_place(sx: number, sy: number, sz: number): Mat4;
|
|
11
12
|
static to_quat_from_array(m: Float32Array, offset: number): Quat;
|
|
@@ -15,6 +16,7 @@ export class Mat4 {
|
|
|
15
16
|
static from_position_rotation_to_ref(position: Vec3, rotation: Quat, result: Mat4): void;
|
|
16
17
|
constructor(val: Float32Array);
|
|
17
18
|
set(val: Float32Array): void;
|
|
19
|
+
inverse(): Mat4;
|
|
18
20
|
static look_at(eye: Vec3, target: Vec3, up: Vec3): Mat4;
|
|
19
21
|
to_quat(): Quat;
|
|
20
22
|
static identity(): Mat4;
|