Skip to content

Ellipsoid: fix normal not calculated at surface point in getPositionToCartographic#1532

Merged
gkjohnson merged 1 commit intoNASA-AMMOS:masterfrom
mqrty:fix-position-to-cartographic
Mar 25, 2026
Merged

Ellipsoid: fix normal not calculated at surface point in getPositionToCartographic#1532
gkjohnson merged 1 commit intoNASA-AMMOS:masterfrom
mqrty:fix-position-to-cartographic

Conversation

@mqrty
Copy link
Copy Markdown
Contributor

@mqrty mqrty commented Mar 23, 2026

As explained in #1531, fixes the latitudinal inaccuracy of getPositionToCartographic by calculating the surface normal at the surface-projected position instead of the input position.

I also added a regression test that compares the results of getPositionToCartographic with the Cesium counterpart at a known coordinate.

@mqrty mqrty force-pushed the fix-position-to-cartographic branch from b358e5f to dd81b54 Compare March 23, 2026 09:28
@gkjohnson
Copy link
Copy Markdown
Contributor

Great, thank you!

@gkjohnson gkjohnson merged commit 45c2ddf into NASA-AMMOS:master Mar 25, 2026
1 check passed
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.

2 participants