third time's the charm?

This commit is contained in:
cantbesure1
2017-11-12 13:47:34 -08:00
parent 091c843459
commit e21cf2cbf2
8 changed files with 119 additions and 50 deletions

View File

@@ -22,4 +22,9 @@ function Pos(x,y)
{
return Math.abs(pos2.x) == Math.abs(this.x) && Math.abs(pos2.y) == Math.abs(this.y);
}
this.scale = function(a)
{
return new Pos(this.x*a,this.y*a)
}
}