Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add geodetic2ecef function. #2

Merged
merged 4 commits into from
Feb 1, 2023
Merged

Add geodetic2ecef function. #2

merged 4 commits into from
Feb 1, 2023

Conversation

nhz2
Copy link
Owner

@nhz2 nhz2 commented Jan 31, 2023

Also updating catch2 so the tests compile on desktop.

Using the algorithm from https://geographiclib.sourceforge.io/

/** Return the position in International Terrestrial Reference System coordinates, units meters.
Using the WGS 84 ellipsoid and the algorithm from https://geographiclib.sourceforge.io/
 INPUT:
    lat: Geodetic latitude in degrees, -90 at the south pole, 90 at the north pole.
    lon: Geodetic longitude in degrees.
    h: Height above the WGS 84 ellipsoid in meters.
**/
inline Vector geodetic2ecef(float lat, float lon, float h)

@nhz2 nhz2 merged commit 2d2964a into master Feb 1, 2023
@nhz2 nhz2 deleted the geodetic branch February 1, 2023 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant