summaryrefslogtreecommitdiff
path: root/examples/resources/lib/vector2.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resources/lib/vector2.lua')
-rw-r--r--examples/resources/lib/vector2.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/resources/lib/vector2.lua b/examples/resources/lib/vector2.lua
index e3df887..afb5fda 100644
--- a/examples/resources/lib/vector2.lua
+++ b/examples/resources/lib/vector2.lua
@@ -130,8 +130,8 @@ function Vector2:lineAngle( v2 )
return RL.Vector2LineAngle( self, v2 )
end
-function Vector2:atan()
- return math.atan( self.x, self.y )
+function Vector2:atan2()
+ return math.atan( self.y, self.x )
end
function Vector2:scale( scale )