diff options
Diffstat (limited to 'mrblib/core.rb')
| -rw-r--r-- | mrblib/core.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mrblib/core.rb b/mrblib/core.rb index 3b64622..21960c0 100644 --- a/mrblib/core.rb +++ b/mrblib/core.rb @@ -1,6 +1,9 @@ module Raylib class Vector2 class << self + # A vector initialized to (0,0). Useful when dont care about the vector + # value but you still need to pass it into a function/method and dont want + # to initialize a new one many times. def default @default ||= self.new(0, 0) end |
