Return aft radius if x == length

This commit is contained in:
SiboVG 2022-09-15 22:29:18 +02:00
parent 170e73325a
commit ac120e8fc1

View File

@ -479,7 +479,7 @@ public class Transition extends SymmetricComponent implements InsideColorCompone
public double getRadius(double x) {
if ( x < 0 )
return getForeRadius();
if ( x > length)
if ( x >= length)
return getAftRadius();
double r1 = getForeRadius();