-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathvector.js
More file actions
45 lines (27 loc) · 1.03 KB
/
vector.js
File metadata and controls
45 lines (27 loc) · 1.03 KB
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
/** Simulating Position : representing movement of boids as vectors */
function vector(){
}
/** Adding Prototype : Calculating magnitude*/
vector.prototype.magnitude = function(){
}
/** Adding Prototype : Normalising vector*/
vector.prototype.normalise = function(){
}
/** Adding Prototype : Setting limiting values of vector magnitude*/
vector.prototype.limiting = function(){
}
/** Adding Prototype : Distance between given vector and object vector */
vector.prototype.distance = function(){
}
/** Prototype: increasing vector co-ordis by a vector inputted as formal parameter */
vector.prototype.increase = function(){
}
/** Prototype: decreasing vector co-ordis by a vector inputted as formal parameter */
vector.prototype.decrease = function(){
}
/** Prototype: scaling up the object vector co-ordis by a vector inputted as formal parameter */
vector.prototype.upscale = function(){
}
/** Prototype: scaling down the object vector co-ordis by a vector inputted as formal parameter */
vector.prototype.downscale = function(){
}