|
@@ -27,6 +27,8 @@ import { Session, SessionOptions } from './core/session';
|
27
|
27
|
import { TrackerFactory } from './trackers/tracker-factory';
|
28
|
28
|
import { SourceFactory } from './sources/source-factory';
|
29
|
29
|
import { Viewport, ViewportSettings } from './core/viewport';
|
|
30
|
+import { Vector2 } from './geometry/vector2';
|
|
31
|
+import { Vector3 } from './geometry/vector3';
|
30
|
32
|
import { Utils } from './utils/utils';
|
31
|
33
|
|
32
|
34
|
declare const __AR_VERSION__: string;
|
|
@@ -103,6 +105,29 @@ export default class AR
|
103
|
105
|
}
|
104
|
106
|
|
105
|
107
|
/**
|
|
108
|
+ * Create a new 2D vector
|
|
109
|
+ * @param x x-coordinate
|
|
110
|
+ * @param y y-coordinate
|
|
111
|
+ * @returns a new 2D vector with the provided coordinates
|
|
112
|
+ */
|
|
113
|
+ static Vector2(x: number, y: number): Vector2
|
|
114
|
+ {
|
|
115
|
+ return new Vector2(x, y);
|
|
116
|
+ }
|
|
117
|
+
|
|
118
|
+ /**
|
|
119
|
+ * Create a new 3D vector
|
|
120
|
+ * @param x x-coordinate
|
|
121
|
+ * @param y y-coordinate
|
|
122
|
+ * @param z z-coordinate
|
|
123
|
+ * @returns a new 3D vector with the provided coordinates
|
|
124
|
+ */
|
|
125
|
+ static Vector3(x: number, y: number, z: number): Vector3
|
|
126
|
+ {
|
|
127
|
+ return new Vector3(x, y, z);
|
|
128
|
+ }
|
|
129
|
+
|
|
130
|
+ /**
|
106
|
131
|
* Global Settings
|
107
|
132
|
*/
|
108
|
133
|
static get Settings(): typeof Settings
|