--- a/rust/integral-geometry/src/lib.rs Tue Oct 03 21:13:41 2023 +0200
+++ b/rust/integral-geometry/src/lib.rs Fri Oct 06 20:34:51 2023 +0200
@@ -59,7 +59,7 @@
#[inline]
pub const fn rotate90(self) -> Self {
- Point::new(self.y, -self.x)
+ Self::new(self.y, -self.x)
}
#[inline]
@@ -68,8 +68,8 @@
}
#[inline]
- pub fn clamp(self, rect: &Rect) -> Point {
- Point::new(rect.x_range().clamp(self.x), rect.y_range().clamp(self.y))
+ pub fn clamp(self, rect: &Rect) -> Self {
+ Self::new(rect.x_range().clamp(self.x), rect.y_range().clamp(self.y))
}
#[inline]