swap max min

This commit is contained in:
Eason 2024-06-13 00:12:08 +08:00
parent 8468e29818
commit 7c11d9d75c
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ impl Polar {
pub fn clip(&self) -> Self { pub fn clip(&self) -> Self {
Polar { Polar {
angle: self.angle, angle: self.angle,
distance: self.distance.min(1e3).max(0.0), distance: self.distance.max(0.0).min(1e3),
} }
} }
} }