public static void getEscribedRectangle( double minX, double minY, double maxX, double maxY, Margins result ) {
Shape viewport = Camera.current.viewport;
Camera.current.screenToField( viewport.leftX(), viewport.topY(), serviceVector00 );
Camera.current.screenToField( viewport.rightX(), viewport.topY(), serviceVector10 );
Camera.current.screenToField( viewport.leftX(), viewport.bottomY(), serviceVector01 );
Camera.current.screenToField( viewport.rightX(), viewport.bottomY(), serviceVector11 );
result.min.x = Math.min( Math.min( serviceVector00.x - minX, serviceVector10.x + maxX ),
Math.min( serviceVector01.x - minX, serviceVector11.x + maxX ) );
result.min.y = Math.min( Math.min( serviceVector00.y - minY, serviceVector10.y - minY ),
Math.min( serviceVector01.y + maxY, serviceVector11.y + maxY ) );
result.max.x = Math.max( Math.max( serviceVector00.x - minX, serviceVector10.x + maxX ),