small cleanup
This commit is contained in:
parent
6096df6978
commit
16ee355b9a
3 changed files with 2 additions and 12 deletions
|
|
@ -41,14 +41,6 @@ function add(v, u) {
|
|||
return {x: v.x + u.x, y: v.y + u.y};
|
||||
}
|
||||
|
||||
function equal(v, u, a) {
|
||||
return (Math.abs(v.x - u.x) < a && Math.abs(v.y - u.y) < a);
|
||||
}
|
||||
|
||||
function distance(x, y, a) {
|
||||
return (norm(vector(x, y)) >= a);
|
||||
}
|
||||
|
||||
function round(v) {
|
||||
return {x: Math.round(v.x), y: Math.round(v.y)};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue