Update vector.coffee

Fix indents.
This commit is contained in:
Rob Blanckaert 2015-03-16 21:02:07 -04:00
parent 0a06022b8f
commit 82c2d4d4b5

View file

@ -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)