-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
33 lines (33 loc) · 951 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { vec3, quat, mat4 } from 'gl-matrix';
export default class Node {
readonly position: vec3;
readonly rotation: quat;
readonly scale: vec3;
readonly _matrix: mat4;
readonly _wmatrix: mat4;
readonly _wposition: vec3;
_parent: Node | null;
_children: Node[];
private _invalidM;
private _invalidW;
constructor();
rotateX(rad: number): void;
rotateY(rad: number): void;
rotateZ(rad: number): void;
set x(v: number);
set y(v: number);
set z(v: number);
get x(): number;
get y(): number;
get z(): number;
setScale(s: number): void;
lookAt(tgt: vec3): void;
setMatrix(m4: mat4): void;
add(child: Node): void;
remove(child: Node): void;
invalidate(): void;
updateMatrix(): void;
updateWorldMatrix(skipParents?: boolean): void;
_computeWorldMatrix(skipParents: boolean): void;
_hasInvalidWorldMatrix(skipParents: boolean): boolean;
}