less clip
This commit is contained in:
parent
336594dfa4
commit
abcd24240f
|
@ -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(1e6).max(0.0),
|
distance: self.distance.min(1e3).max(0.0),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue