This commit is contained in:
numzero 2024-06-27 12:58:45 +03:00
parent c2922d5fe1
commit 15a28df2ed

View File

@ -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);