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.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/resources/lib/vector2.lua b/examples/resources/lib/vector2.lua
index 15934fb..065e556 100644
--- a/examples/resources/lib/vector2.lua
+++ b/examples/resources/lib/vector2.lua
@@ -36,6 +36,9 @@ Vector2.meta = {
__eq = function( v1, v2 )
return RL.Vector2Equals( v1, v2 ) == 1
end,
+ __concat = function( a, b )
+ return tostring( a )..tostring( b )
+ end,
}
function Vector2:new( x, y )