@vived/app 2.46.0 → 2.46.2

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.
@@ -1,6 +1,12 @@
1
1
  import { Angle } from "./Angle";
2
2
  import { Matrix } from "./Matrix";
3
3
  import { Vector3 } from "./Vector3";
4
+ export interface QuaternionDTO {
5
+ x: number;
6
+ y: number;
7
+ z: number;
8
+ w: number;
9
+ }
4
10
  export declare class Quaternion {
5
11
  /**
6
12
  * Checks to see if two Quaternions are equal
@@ -35,12 +41,7 @@ export declare class Quaternion {
35
41
  * @param dto The Data Transfer Object
36
42
  * @returns The Quaternion
37
43
  */
38
- static FromDTO(dto: {
39
- x: number;
40
- y: number;
41
- z: number;
42
- w: number;
43
- }): Quaternion;
44
+ static FromDTO(dto: QuaternionDTO): Quaternion;
44
45
  /**
45
46
  * Creates an Identity Quaternion
46
47
  * @returns An Identity Quaternion
@@ -98,14 +99,9 @@ export declare class Quaternion {
98
99
  get angle(): Angle;
99
100
  get axis(): Vector3;
100
101
  /**
101
- * Get the vector as a Data Transfer Object
102
+ * Get the quaternion as a Data Transfer Object
102
103
  */
103
- get dto(): {
104
- x: number;
105
- y: number;
106
- z: number;
107
- w: number;
108
- };
104
+ get dto(): QuaternionDTO;
109
105
  readonly x: number;
110
106
  readonly y: number;
111
107
  readonly z: number;
@@ -4,6 +4,7 @@ exports.Quaternion = void 0;
4
4
  const Angle_1 = require("./Angle");
5
5
  const Matrix_1 = require("./Matrix");
6
6
  const Vector3_1 = require("./Vector3");
7
+ ;
7
8
  class Quaternion {
8
9
  constructor(x, y, z, w) {
9
10
  this.x = x;
@@ -248,7 +249,7 @@ class Quaternion {
248
249
  return new Vector3_1.Vector3(x, y, z);
249
250
  }
250
251
  /**
251
- * Get the vector as a Data Transfer Object
252
+ * Get the quaternion as a Data Transfer Object
252
253
  */
253
254
  get dto() {
254
255
  return { x: this.x, y: this.y, z: this.z, w: this.w };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vived/app",
3
- "version": "2.46.0",
3
+ "version": "2.46.2",
4
4
  "description": "Public package for the VIVED Learning App system",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",