For my application, I need to calculate an angle between two different lines: < P> 1) The first line is between a point on the earth, which is defined by the longitude and latitude and the center of the sun.
2) The second line is between a point on the earth, which is defined by the longitude and the latitude and the surface, with the small distance from the Earth on the Moon.
I do not know how I should start there. Any signals?
Assuming that you actually have three digits of interest already calculated [*] , Where Or, in other words, [*] Your question only asks for angle between two rows - If you want to know instead how to calculate the actual lines of any moment of time then you should rewrite your question needed. O is the position of the supervisor (on earth),
S is the position of the sun and
M is the point on the moon, then:
ohm OS = | Om | * | OS |
to calculate the theta , move the dot product of two vectors,
Comments
Post a Comment