use crate::math::vec::FGVec2; pub struct FGRect { pub origin: FGVec2, pub end: FGVec2, } impl FGRect { pub fn contains_point(&self, point: FGVec2) -> bool { point.x >= self.origin.x && point.y <= self.origin.y && point.x <= self.end.x && point.y >= self.end.y } }