public static Bbox setCenterPoint ( Bbox bbox , Coordinate center ) { double x = center . getX ( ) - 0.5 * bbox . getWidth ( ) ; double y = center . getY ( ) - 0.5 * bbox . getHeight ( ) ; return new Bbox ( x , y , bbox . getWidth ( ) , bbox . getHeight ( ) ) ; }
Translate a bounding box by applying a new center point .