This commit is contained in:
2024-11-29 10:58:17 +01:00
parent 9289a829be
commit 26a8924bc8
5 changed files with 15 additions and 15 deletions

View File

@ -118,11 +118,11 @@ impl<Space: CoordinateSpace> Rectangle<Space> {
}
pub fn width(&self) -> Space::Data {
self.bottom_right.x.clone() - self.top_left.x.clone()
self.bottom_right.x - self.top_left.x
}
pub fn height(&self) -> Space::Data {
self.bottom_right.y.clone() - self.top_left.y.clone()
self.bottom_right.y - self.top_left.y
}
pub const fn left(&self) -> Space::Data {