|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.disutil.EulerConversions
public class EulerConversions
Class contains methods that convert to Tait_Bryan_angles (i.e., roll, pitch and yaw/heading) given the position (i.e., latitude, longitude) and the euler angles (i.e., psi, theta, and phi). Class also has methods for the corollary: converting to psi, theta, and phi given the lat/lon position and the entity's roll, pitch and yaw angles In this class roll, pitch and yaw are always expressed in degrees whereas psi, theta, and phi are always in radians. Note: latitude and longitude are also expressed in radians.
Constructor Summary | |
---|---|
EulerConversions()
|
Method Summary | |
---|---|
static double |
getOrientationFromEuler(double lat,
double lon,
double psi,
double theta)
Gets a degree heading for an entity based on euler angles. |
static double |
getPhiFromTaitBryanAngles(double lat,
double lon,
double yaw,
double pitch,
double roll)
Gets the Euler Phi value (in radians) from position and Tait-Brayn yaw, pitch and roll angles |
static double |
getPitchFromEuler(double lat,
double lon,
double psi,
double theta)
Gets a degree pitch for an entity based on euler angles. |
static double |
getPsiFromTaitBryanAngles(double lat,
double lon,
double yaw,
double pitch)
Gets the Euler Psi value (in radians) from position and Tait-Brayn yaw and roll angles |
static double |
getRollFromEuler(double lat,
double lon,
double psi,
double theta,
double phi)
Gets the degree roll for an entity based on euler angles. |
static double |
getThetaFromTaitBryanAngles(double lat,
double lon,
double yaw,
double pitch)
Gets the Euler Theta value (in radians) from position and Tait-Brayn yaw and roll angles |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EulerConversions()
Method Detail |
---|
public static double getOrientationFromEuler(double lat, double lon, double psi, double theta)
lat
- Entity's latitude, IN RADIANSlon
- Entity's longitude, IN RADIANSpsi
- Psi angle, IN RADIANStheta
- Theta angle, IN RADIANS
public static double getPitchFromEuler(double lat, double lon, double psi, double theta)
lat
- Entity's latitude, IN RADIANSlon
- Entity's longitude, IN RADIANSpsi
- Psi angle, IN RADIANStheta
- Theta angle, IN RADIANS
public static double getRollFromEuler(double lat, double lon, double psi, double theta, double phi)
lat
- Entity's latitude, IN RADIANSlon
- Entity's longitude, IN RADIANSpsi
- Psi angle, IN RADIANStheta
- Theta angle, IN RADIANSphi
- Phi angle, IN RADIANS
public static double getThetaFromTaitBryanAngles(double lat, double lon, double yaw, double pitch)
lat
- Entity's latitude, IN RADIANSlon
- Entity's longitude, IN RADIANSyaw
- entity's yaw angle (also know as the entity's bearing or heading angle), in degreespitch
- entity's pitch angle, in degrees
public static double getPsiFromTaitBryanAngles(double lat, double lon, double yaw, double pitch)
lat
- Entity's latitude, IN RADIANSlon
- Entity's longitude, IN RADIANSyaw
- ettity's yaw angle (also know as the entity's bearing or heading angle), in degreespitch
- entity's pitch angle, in degrees
public static double getPhiFromTaitBryanAngles(double lat, double lon, double yaw, double pitch, double roll)
lat
- Entity's latitude, IN RADIANSlon
- Entity's longitude, IN RADIANSyaw
- yaw angle (also know as the entity's bearing or heading angle), in degreespitch
- entity's pitch angle, in degreesroll
- entity's roll angle (0 is level flight, + roll is clockwise looking out the nose), in degrees
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |