open-dis-cpp
Static Public Member Functions | List of all members
DIS::ConversionUtils Class Reference

Static Public Member Functions

static double getOrientationFromEuler (double lat, double lon, double psi, double theta)
 Gets a degree heading for an entity based on euler angles. More...
 
static double getPitchFromEuler (double lat, double lon, double psi, double theta)
 Gets a degree pitch for an entity based on euler angles. More...
 
static double getRollFromEuler (double lat, double lon, double psi, double theta, double phi)
 Gets the degree roll for an entity based on euler angles. More...
 
static double radToDeg (double rad)
 
static double degToRad (double deg)
 

Member Function Documentation

◆ getOrientationFromEuler()

double DIS::ConversionUtils::getOrientationFromEuler ( double  lat,
double  lon,
double  psi,
double  theta 
)
static

Gets a degree heading for an entity based on euler angles.

All angular values passed in must be in radians.

Parameters
latlatitude expressed in radians
lonlongitude expressed in radians
psiX angle part of Tait-Bryan XYZ convention expressed in radians
thetaY angle part of Tait-Bryan XYZ convention expressed in radians
Returns
the heading, in degrees, with 0 being north, positive angles going clockwise, and negative angles going counterclockwise (i.e., 90 deg is east, -90 is west)

◆ getPitchFromEuler()

double DIS::ConversionUtils::getPitchFromEuler ( double  lat,
double  lon,
double  psi,
double  theta 
)
static

Gets a degree pitch for an entity based on euler angles.

All angular values passed in must be in radians.

Parameters
latlatitude expressed in radians
lonlongitude expressed in radians
psiX angle part of Tait-Bryan XYZ convention expressed in radians
thetaY angle part of Tait-Bryan XYZ convention expressed in radians
Returns
the pitch, in degrees, with 0 being level. A negative values is when the entity's nose is pointing downward, positive value is when the entity's nose is pointing upward.

◆ getRollFromEuler()

double DIS::ConversionUtils::getRollFromEuler ( double  lat,
double  lon,
double  psi,
double  theta,
double  phi 
)
static

Gets the degree roll for an entity based on euler angles.

All angular values passed in must be in radians.

Parameters
latlatitude expressed in radians
lonlongitude expressed in radians
psiX angle part of Tait-Bryan XYZ convention expressed in radians
thetaY angle part of Tait-Bryan XYZ convention expressed in radians
phiZ angle part of Tait-Bryan XYZ convention expressed in radians
Returns
the roll, in degrees, with 0 being level flight, + roll is clockwise when looking out the front of the entity.

The documentation for this class was generated from the following files: