ln 179 & 181: second self.y changed to self.x

For vector:angleTo()
This commit is contained in:
Mifuyne 2014-02-17 12:32:42 -05:00
parent 81f0faf476
commit 157ec82cd5

View File

@ -176,9 +176,9 @@ end
function vector:angleTo(other) function vector:angleTo(other)
if other then if other then
return atan2(self.y, self.y) - atan2(other.y, other.x) return atan2(self.y, self.x) - atan2(other.y, other.x)
end end
return atan2(self.y, self.y) return atan2(self.y, self.x)
end end
function vector:trimmed(maxLen) function vector:trimmed(maxLen)