diff --git a/co-simulation/lib/mosaic-geomath/src/main/java/org/eclipse/mosaic/lib/transform/Proj4Projection.java b/co-simulation/lib/mosaic-geomath/src/main/java/org/eclipse/mosaic/lib/transform/Proj4Projection.java index eb92d325..722f7420 100644 --- a/co-simulation/lib/mosaic-geomath/src/main/java/org/eclipse/mosaic/lib/transform/Proj4Projection.java +++ b/co-simulation/lib/mosaic-geomath/src/main/java/org/eclipse/mosaic/lib/transform/Proj4Projection.java @@ -88,14 +88,14 @@ public Proj4Projection(GeoPoint origin, double x_offset, double y_offset, String @Override public Vector3d geographicToVector(GeoPoint geographic, Vector3d result){ - // TODO: Update - required to be defined by the base class, but is non-essential - return (new Vector3d()); + getGeoCalculator().distanceBetween(geoOrigin, geographic, result); + return result; } @Override public MutableGeoPoint vectorToGeographic(Vector3d vector3d, MutableGeoPoint result) { - // TODO: Update - required to be defined by the base class, but is non-essential - return (new MutableGeoPoint()); + getGeoCalculator().pointFromDirection(geoOrigin, vector3d, result); + return result; } @Override @@ -129,13 +129,11 @@ public MutableGeoPoint cartesianToGeographic(CartesianPoint cartesian, MutableGe @Override public Vector3d utmToVector(UtmPoint utm, Vector3d result) { - // TODO: Update - required to be defined by the base class, but is non-essential here return geographicToVector(utmToGeographic(utm)); } @Override public MutableUtmPoint vectorToUtm(Vector3d vector, MutableUtmPoint result) { - // TODO: Update - required to be defined by the base class, but is non-essential here return geographicToUtm(vectorToGeographic(vector), result); }