Method: MiniGL::Map#get_center
- Defined in:
- lib/minigl/map.rb
#get_center ⇒ Object
Returns a Vector with the coordinates of the center of the map.
66 67 68 69 |
# File 'lib/minigl/map.rb', line 66 def get_center abs_size = get_absolute_size Vector.new(abs_size.x * 0.5, abs_size.y * 0.5) end |