@skewedaspect/sage 0.9.0 → 0.9.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/dist/classes/gameLevel.d.ts +6 -7
- package/dist/interfaces/level.d.ts +9 -0
- package/dist/sage.d.ts +1 -0
- package/dist/sage.es.js +249 -226
- package/dist/sage.es.js.map +1 -1
- package/dist/sage.umd.js +1 -1
- package/dist/sage.umd.js.map +1 -1
- package/dist/utils/vectors.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Quaternion, Vector3 } from '@babylonjs/core';
|
|
2
|
+
import { QuatConfig, Vec3Config } from "../interfaces/level.d.ts";
|
|
3
|
+
/**
|
|
4
|
+
* Convert a BabylonJS Vector3 to a plain { x, y, z } object.
|
|
5
|
+
*/
|
|
6
|
+
export declare function toVec3Object(vector: Vector3): Vec3Config;
|
|
7
|
+
/**
|
|
8
|
+
* Convert a plain { x, y, z } object to a BabylonJS Vector3.
|
|
9
|
+
*/
|
|
10
|
+
export declare function toVector3(vec: Vec3Config): Vector3;
|
|
11
|
+
/**
|
|
12
|
+
* Convert a BabylonJS Quaternion to a plain { x, y, z, w } object.
|
|
13
|
+
*/
|
|
14
|
+
export declare function toQuatObject(quat: Quaternion): QuatConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Convert a plain { x, y, z, w } object to a BabylonJS Quaternion.
|
|
17
|
+
*/
|
|
18
|
+
export declare function toQuaternion(quat: QuatConfig): Quaternion;
|