pub fn clamp(mut self, min: f64, max: f64) -> Point {
        self.x = self.x.max(min).min(max);
        self.y = self.y.max(min).min(max);
        self
    }
// Component-wise constraints this point between two values
Component-wise constraints this point between two values
Component - wise constraints this point between two values
pub fn clamp(mut self, min: f64, max: f64) -> Point {
        self.x = self.x.max(min).min(max);
        self.y = self.y.max(min).min(max);
        self
    }
pub fn clamp ( mut self , min : f64 , max : f64 ) -> Point { self . x = self . x . max ( min ) . min ( max ) ; self . y = self . y . max ( min ) . min ( max ) ; self }
Component-wise constraints this point between two values
Component - wise constraints this point between two values
mut self
min
f64
max
f64