swap max min
This commit is contained in:
@ -18,7 +18,7 @@ impl Polar {
|
||||
pub fn clip(&self) -> Self {
|
||||
Polar {
|
||||
angle: self.angle,
|
||||
distance: self.distance.min(1e3).max(0.0),
|
||||
distance: self.distance.max(0.0).min(1e3),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user