public Coordinates InverseProject(doubleVector3 mercator) { var mercatorArr = ProjectionUtils.VectorToArray(mercator, _altitudeAxis); var wgs84 = _wgs84ToMercator.InverseProject(mercatorArr); return(ProjectionUtils.ArrayToCoordinate(wgs84)); }
public doubleVector3 Project(Coordinates wgs84) { var wgs84Arr = ProjectionUtils.CoordinateToArray(wgs84); var mercator = _wgs84ToMercator.Project(wgs84Arr); return(ProjectionUtils.ArrayToVector(mercator, _altitudeAxis)); }