Advertisement
Masterchoc

Untitled

Jan 28th, 2018
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement