I'm developing an MFD which I want to display the equatorial inclination. I have gotten the inclination with the GetElements method.
My problem now is to convert it from ecliptic to equatorial inclination. I searched the forum and found this post: http://www.orbiter-forum.com/showthread.php?p=363942&postcount=6. Now this method only works for Earth, and I want my MFD to be universal.
I then found this Wikipedia page: http://en.wikipedia.org/wiki/Celestial_coordinate_system#Equatorial_.E2.86.90.E2.86.92_ecliptical.
This shows me how to do it with a matrix. But the sad part is that I have no knowledge about how to calculate using matrices (if that is what it's called).
Could somebody show me how to do this conversion using C++ language or Orbiter API? If not, it would be nice to see how it's done on paper so that I can do the calculation in C++ later one step at the time.
Also, what calls should I use to get the ecliptic longitude and latitude (or what else that I need to get the variables for each planet)?
:idk:
Code:
Vessel->GetElements(RefPlanet, el, &prm);
Inc = el.i;
I then found this Wikipedia page: http://en.wikipedia.org/wiki/Celestial_coordinate_system#Equatorial_.E2.86.90.E2.86.92_ecliptical.
This shows me how to do it with a matrix. But the sad part is that I have no knowledge about how to calculate using matrices (if that is what it's called).
Could somebody show me how to do this conversion using C++ language or Orbiter API? If not, it would be nice to see how it's done on paper so that I can do the calculation in C++ later one step at the time.
Also, what calls should I use to get the ecliptic longitude and latitude (or what else that I need to get the variables for each planet)?
:idk: