mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Update vector.coffee
Fix indents.
This commit is contained in:
parent
0a06022b8f
commit
82c2d4d4b5
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ class Vector
|
|||
apiProperties: ['x', 'y', 'z', 'magnitude', 'heading', 'distance', 'dot', 'equals', 'copy', 'distanceSquared', 'rotate']
|
||||
|
||||
constructor: (x=0, y=0, z=0) ->
|
||||
return new Vector(x,y,z) unless this instanceof Vector
|
||||
[@x, @y, @z] = [x,y,z]
|
||||
return new Vector(x,y,z) unless this instanceof Vector
|
||||
[@x, @y, @z] = [x,y,z]
|
||||
|
||||
copy: ->
|
||||
new Vector(@x, @y, @z)
|
||||
|
|
Loading…
Reference in a new issue