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
|
import math for Math;
class Vector3 {
static one = new Vector3(1,1,1);
static zero = new Vector3(0,0,0);
static front = ne Vector3(0,0,1);
static up = new Vector3(0,1,0);
static right = new Vector3(1,0,0);
func init(x, y, z) {
self.x = x;
self.y = y;
self.z = z;
}
func length() {
return Math.sqrt(self.x^2 + self.y^2 + self.z^2);
}
static func lerp(v1, v2, t) {
}
static func slerp(v1, v2, t) {
}
}
/*
var v = new Vector3(1,1,1);
*/
|