summaryrefslogtreecommitdiff
path: root/examples/resources
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resources')
-rw-r--r--examples/resources/lib/vector2.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/resources/lib/vector2.lua b/examples/resources/lib/vector2.lua
index 6da1977..d46f2af 100644
--- a/examples/resources/lib/vector2.lua
+++ b/examples/resources/lib/vector2.lua
@@ -164,7 +164,7 @@ function Vector2:lineAngle( v2 )
end
function Vector2:atan2()
- return math.atan( self.y, self.x )
+ return math.atan2 and math.atan2( self.y, self.x ) or math.atan( self.y, self.x )
end
function Vector2:scale( scale )