-
Notifications
You must be signed in to change notification settings - Fork 0
/
vec2.d.tl
65 lines (58 loc) · 2.59 KB
/
vec2.d.tl
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
local record vec2
x: number
y: number
length: number
length2: number
normal: vec2
copy: vec2
new: function(x: number, y: number): vec2
fromPolar: function(angle: number, length: number): vec2
fromLoveMouse: function(): vec2
fromLoveDimensions: function(): vec2
fromLoveMode: function(): vec2
metamethod __call: function(self: vec2, x: number, y: number): vec2
metamethod __add: function(self_: vec2, other: vec2): vec2
metamethod __sub: function(self_: vec2, other: vec2): vec2
metamethod __mul: function(self_: vec2 | number, other: vec2 | number): vec2
metamethod __mul: function(self_: vec2 | integer, other: vec2 | integer): vec2
metamethod __div: function(self_: vec2, other: vec2 | number): vec2
metamethod __div: function(self_: vec2, other: vec2 | integer): vec2
metamethod __mod: function(self_: vec2, other: vec2 | number): vec2
metamethod __mod: function(self_: vec2, other: vec2 | integer): vec2
metamethod __pow: function(self_: vec2, other: vec2 | number): vec2
metamethod __pow: function(self_: vec2, other: vec2 | integer): vec2
metamethod __unm: function(self_: vec2): vec2
metamethod __eq: function(self_: vec2, other: vec2): boolean
metamethod __lt: function(self_: vec2, other: vec2): boolean
metamethod __le: function(self_: vec2, other: vec2): boolean
metamethod __tostring: function(self_: vec2): string
set: function(self: vec2, x: number, y: number)
set: function(self: vec2, point: vec2)
dot: function(self: vec2, other: vec2): number
cross: function(self: vec2, other: vec2): number
dist: function(self: vec2, other: vec2): number
dist2: function(self: vec2, other: vec2): number
delta: function(self: vec2, other: vec2): vec2
lerp: function(self: vec2, t: number, other: vec2): vec2
split: function(self: vec2): number, number
min: function(self: vec2, ...: vec2): vec2
minCoord: function(self: vec2, ...: vec2): number
max: function(self: vec2, ...: vec2): vec2
maxCoord: function(self: vec2, ...: vec2): number
bounds: function(self: vec2, ...: vec2): vec2, vec2
perp: function(self: vec2): vec2
polar: function(self: vec2): number, number
rotate: function(self: vec2, delta: number)
rotated: function(self: vec2, delta: number): vec2
loveMouse: function(self: vec2)
loveMode: function(self: vec2)
getAngle: function(self: vec2): number
setAngle: function(self: vec2, angle: number)
getLength: function(self: vec2): number
setLength: function(self: vec2, length: number)
getLength2: function(self: vec2): number
setLength2: function(self: vec2, length2: number)
getNormal: function(self: vec2): vec2
getCopy: function(self: vec2): vec2
end
return vec2