Method: SDL.PointInRect

Defined in:
lib/sdl2_rect.rb

.PointInRect(p, r) ⇒ Object



20
21
22
# File 'lib/sdl2_rect.rb', line 20

def self.PointInRect(p, r)
  return ( (p.x >= r.x) && (p.x < (r.x + r.w)) && (p.y >= r.y) && (p.y < (r.y + r.h)) ) ? 1 : 0;
end