Fix silly ancient math mistake

This commit is contained in:
Nick Winter 2016-03-15 08:05:00 -07:00
parent e5dda556c6
commit 8a93374a87

View file

@ -122,7 +122,7 @@ class Vector
dot: (other, useZ) ->
sum = @x * other.x + @y * other.y
sum += @z + other.z if useZ
sum += @z * other.z if useZ
sum
# Not the strict projection, the other isn't converted to a unit vector first.