}
private MutableAABB getCurrentPort(final long ct) {
if (portMaxXAnimation == 0 & portMaxYAnimation == 0)
return port;
MutableAABB currentPort = MutableAABB.create(2);
final double width = port.max(X) - port.min(X);
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;
}