makeCoordinatePrecise method

void makeCoordinatePrecise(
  1. Coordinate coord
)

Rounds a Coordinate to the PrecisionModel grid.

Implementation

void makeCoordinatePrecise(Coordinate coord) {
  // optimization for full precision
  if (modelType == FLOATING) return;

  coord.x = makePrecise(coord.x);
  coord.y = makePrecise(coord.y);
  //MD says it's OK that we're not makePrecise'ing the z [Jon Aquino]
}