Skip to content

Commit

Permalink
add vector transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
MishkaMN committed Sep 27, 2024
1 parent dcb3f00 commit 7ab1c4e
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 7ab1c4e

Please sign in to comment.