Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Rect::intersects(const glm::vec2& point)
- {
- return point.x > m_position.x
- && point.x < m_position.x + m_size.x
- && point.y > m_position.y
- && point.y < m_position.y + m_size.y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement