Masterchoc

Untitled

Jan 28th, 2018
144
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool Rect::intersects(const glm::vec2& point)
  2. {
  3.     return point.x > m_position.x
  4.         && point.x < m_position.x + m_size.x
  5.         && point.y > m_position.y
  6.         && point.y < m_position.y + m_size.y;
  7. }
RAW Paste Data