convert method

Point convert(
  1. Zone zone
)

Returns a new Point converted in the specified Zone

Implementation

Point convert(Zone zone) {
  if (zone == Zone.L93) {
    return lambertToGeographic(
        this, zone, lonIERSMeridian, eWGS84, defaultEPS);
  } else {
    var point = lambertToGeographic(
        this, zone, lonParisMeridian, eClarkIGN, defaultEPS);
    point = geographicToCartesian(
        point.x, point.y, point.z, aClarkIGN, eClarkIGN);

    point.x -= 168;
    point.y -= 60;
    point.z += 320;

    return cartesianToGeographic(
        point, lonGreenwichMeridian, aWGS84, eWGS84, defaultEPS);
  }
}