Calculating angles
Posted: 26.10.2005, 18:44
For my planetary magnitudes script that I'm working on, I need to find the phase angle - the angle between the Sun-Body and Body-Observer lines.
It's not remotely obvious to me how to do this in a script though. Probably something to do with vectors I guess?
(this'd be one for the wikibook if we can figure it out, definitely ).
It's not remotely obvious to me how to do this in a script though. Probably something to do with vectors I guess?
(this'd be one for the wikibook if we can figure it out, definitely ).