round method

Coordinate round()

Rounds the x and y fields to the nearest integer values. @return {!goog.math.Coordinate} This coordinate with rounded fields.

Implementation

Coordinate round()
{
  x = x.roundToDouble();
  y = y.roundToDouble();
  return this;
}