Bugfix!
This commit is contained in:
parent
c2922d5fe1
commit
15a28df2ed
|
|
@ -283,7 +283,7 @@ mod coords {
|
||||||
|
|
||||||
// NB: имеет разрыв в области Inner на y = 0.
|
// NB: имеет разрыв в области Inner на y = 0.
|
||||||
fn global_to_outer(self, loc: Location) -> Location {
|
fn global_to_outer(self, loc: Location) -> Location {
|
||||||
let inner = Rect { size: vec2(self.inner_radius, self.internal_halflength) };
|
let inner = Rect { size: vec2(self.inner_radius, self.external_halflength) };
|
||||||
if inner.is_inside(loc.pos) {
|
if inner.is_inside(loc.pos) {
|
||||||
let Vec2 { x: u, y } = loc.pos; // в основной СК
|
let Vec2 { x: u, y } = loc.pos; // в основной СК
|
||||||
let v = self.v(y) + y.signum() * (self.external_halflength - self.internal_halflength);
|
let v = self.v(y) + y.signum() * (self.external_halflength - self.internal_halflength);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user