-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.d.ts
75 lines (70 loc) · 2.46 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
declare module 'vec3' {
export class Vec3 {
elements: Float32Array;
constructor(x?: number, y?: number, z?: number);
normalize(): this;
add(other: Vec3): this;
x: number;
y: number;
z: number;
}
}
declare module 'vec4' {
export class Vec4 {
elements: Float32Array;
constructor(x?: number, y?: number, z?: number, w?: number);
x: number;
y: number;
z: number;
w: number;
}
}
declare module 'mat4' {
import { Vec3 } from 'vec3';
import { Vec4 } from 'vec4';
export class Mat4 {
elements: Float32Array;
constructor(source?: Mat4 | null);
setIdentity(): this;
set(src: any): this | undefined;
multiply(other: any): this;
multiplyVector3(pos: any): Vec3;
multiplyVector4(pos: any): Vec4;
transpose(): this;
setInverseOf(other: any): this;
invert(): this;
setOrtho(left: any, right: any, bottom: any, top: any, near: any, far: any): this;
ortho(left: any, right: any, bottom: any, top: any, near: any, far: any): this;
setFrustum(left: any, right: any, bottom: any, top: any, near: any, far: any): this;
frustum(left: any, right: any, bottom: any, top: any, near: any, far: any): this;
setPerspective(fovy: any, aspect: any, near: any, far: any): this;
perspective(fovy: any, aspect: any, near: any, far: any): this;
setScale(x: any, y: any, z: any): this;
scale(x: any, y: any, z: any): this;
setTranslate(x: any, y: any, z: any): this;
translate(x: any, y: any, z: any): this;
setRotate(angle: any, x: any, y: any, z: any): this;
rotate(angle: any, x: any, y: any, z: any): this;
setLookAt(eyeX: any, eyeY: any, eyeZ: any, centerX: any, centerY: any, centerZ: any, upX: any, upY: any, upZ: any): this;
lookAt(eyeX: any, eyeY: any, eyeZ: any, centerX: any, centerY: any, centerZ: any, upX: any, upY: any, upZ: any): this;
dropShadow(plane: any, light: any): this;
dropShadowDirectionally(normX: any, normY: any, normZ: any, planeX: any, planeY: any, planeZ: any, lightX: any, lightY: any, lightZ: any): this;
private concat(other);
}
}
declare module 'vec2' {
export class Vec2 {
elements: Float32Array;
constructor(x?: number, y?: number);
add(other: Vec2): this;
x: number;
y: number;
}
}
declare module 'cuon-matrix-ts' {
import { Mat4 } from 'mat4';
import { Vec4 } from 'vec4';
import { Vec3 } from 'vec3';
import { Vec2 } from 'vec2';
export { Mat4, Vec4, Vec3, Vec2 };
}