Code example for Rect

Methods: centerXcenterY