Files
shinespark/src/math/rect.rs
T
EIREXE 9b974d0dd6
CI / build-and-test (push) Successful in 2m15s
CI / production-build (push) Successful in 12m24s
Initial work on ledge & improved baking of root motion. (#90)
Reviewed-on: #90
Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
2026-10-12 20:58:27 +00:00

13 lines
290 B
Rust

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
}
}