scaleCoords method

List<Coordinate> scaleCoords(
  1. List<Coordinate> pts
)

Implementation

List<Coordinate> scaleCoords(List<Coordinate> pts) {
  List<Coordinate> roundPts = []; //..length = (pts.length);
  for (int i = 0; i < pts.length; i++) {
    // roundPts[i] = Coordinate.fromXYZ(
    roundPts.add(Coordinate.fromXYZ(
      ((pts[i].x - offsetX) * scaleFactor).roundToDouble(),
      ((pts[i].y - offsetY) * scaleFactor).roundToDouble(),
      pts[i].getZ(),
    ));
  }
  List<Coordinate> roundPtsNoDup =
      CoordinateArrays.removeRepeatedPoints(roundPts);
  return roundPtsNoDup;
}