commit
64b899c68c
4 changed files with 402 additions and 377 deletions
|
@ -124,6 +124,10 @@ where
|
|||
},
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clamp(&self, min: &Self, max: &Self) -> Self {
|
||||
self.max(min).min(max)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Clone + Default + Debug> Clone for Point<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue