Skip to content

Topocentric elongation of moon. #241

Answered by cosinekitty
hidp123 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hidp123! Yes, I can help you with this. Here is the simplest way I can think of right now.

Call the Equator function twice, once with Body.Sun, again with Body.Moon. In both calls, pass the desired geographic coordinates in the observer parameter. These calls will return type Equatorial, which contains a vector called vec.

Then pass both vectors to AngleBetween, which returns the angle between the vectors expressed in degrees.

Does this help?

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
5 replies
@hidp123
Comment options

@hidp123
Comment options

@cosinekitty
Comment options

@hidp123
Comment options

@cosinekitty
Comment options

Answer selected by hidp123
Comment options

You must be logged in to vote
4 replies
@cosinekitty
Comment options

@hidp123
Comment options

@cosinekitty
Comment options

@cosinekitty
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants