getCentre method

Coordinate getCentre()

@return {!goog.math.Coordinate} A new coordinate for the center of the rectangle.

Implementation

Coordinate getCentre()
{
  return new Coordinate(left + width / 2, top + height / 2);
}