I have a radius and the 2 angles for northSouth and eastWest rotations in degrees. I need a Spherical position or a cartesian position (I have code translate one to the other)
Where a position is defined as one of the following ...
class Vector {
public float x; // distance along x axis
public float y; // distance along y axis
public float z; // distance along z axis
}
class SphericalPosition {
public float radius; // distance from center
public float azimuth; // distance from 0 degrees around polar axis
public float inclination; // distance up from equator (x,z plane)
}
I am looking for an implementation to one of the following 2 methods ...
SphericalPosition FromAngles(float radius, float degreesUpDown, float degreesRound)
{
}
Vector FromAngles(float radius, float degreesUpDown, float degreesRound)
{
}
EDIT: Maybe someone can confirm or deny this but given a radius and 2 angles I believe this is referred to as a polar coordinate?
So in that light I guess i'm asking how to convert from a polar coordinate defined as the following ....
class PolarPos
{
public float radius; // distance from center
public float AngleUpDown; // rotation of x,z plane
public float AngleLeftRight; // rotation round y axis
}
... in to one of the above
EDIT 2: Ah ha ok it looks like what I have are the radius and ...
orbital / inclination angle (in degrees): http://en.wikipedia.org/wiki/Orbital_inclination
and the polar / azimuth angle (in degrees): http://en.wikipedia.org/wiki/Azimuth
And essentially I think I need the math to turn degrees in to longitude / latitude type coords (the spherical position as defined above).