public Point2D_F64 getCenter ( ) { Rectangle r = getVisibleRect ( ) ; double x = ( r . x + r . width / 2 ) / scale ; double y = ( r . y + r . height / 2 ) / scale ; return new Point2D_F64 ( x , y ) ; }
The center pixel in the current view at a scale of 1