final double height = port.max(Y) - port.min(Y);
final double ratio = height / width;
double animation = Math.min(1.0, (double) (ct - portAnimationStartTime) / ANIMATION_DURATION);
currentPort.min(X, port.min(X) + animation * portMinXAnimation);
currentPort.min(Y, port.min(Y) + animation * portMinYAnimation);
currentPort.max(X, port.max(X) + animation * portMaxXAnimation);
currentPort.max(Y, port.max(Y) + animation * portMaxYAnimation);
return currentPort;
}
private void fixPort(final long ct, boolean onlyIfFinished) {