Method: Ray::Rect#top_right
- Defined in:
- lib/ray/rect.rb
#top_right ⇒ Ray::Vector2
Returns top right corner.
49 50 51 |
# File 'lib/ray/rect.rb', line 49 def top_right Ray::Vector2[x + w, y] end |
Returns top right corner.
49 50 51 |
# File 'lib/ray/rect.rb', line 49 def top_right Ray::Vector2[x + w, y] end |