public class BodyCoordinateSystem extends CoordinateSystem
Body Coordinate System. The X-axis points forward (towards the nose); The Y-axis points port side (left); The Z-axis points up;
rightGrid| Constructor and Description |
|---|
BodyCoordinateSystem(Datum datum,
GeoLocation origin,
double yawDegrees,
double pitchDegrees,
double rollDegrees)
Constructs a body coordinate system.
|
BodyCoordinateSystem(ECEFLocation origin,
ECEFVelocity vel) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromECEF(Vector3 ecf,
Vector3 vec)
Converts a non-location vector from ECEF coordinates to this coordinate system.
|
void |
fromECEFLocation(Vector3 ecf,
Vector3 vec)
Converts a location vector from ECEF coordinates to this coordinate system.
|
ECEFLocation |
getOrigin()
The coordinate system’s origin (in ECEF coordinates) with respect to the datum.
|
void |
toECEF(Vector3 vec,
Vector3 ecf)
Converts a non-location vector from this coordinate system to ECEF.
|
void |
toECEFLocation(Vector3 vec,
Vector3 ecf)
Converts a location vector from this coordinate system to ECEF.
|
public BodyCoordinateSystem(Datum datum, GeoLocation origin, double yawDegrees, double pitchDegrees, double rollDegrees)
Constructs a body coordinate system.
origin - position of the center of the bodyyawDegrees - angle between nose and north in degrees, east is positive.pitchDegrees - angle between nose and horizon in degrees, up is positive.rollDegrees - angle between right wing and horizon in degrees, up is positive.public BodyCoordinateSystem(ECEFLocation origin, ECEFVelocity vel)
public ECEFLocation getOrigin()
CoordinateSystemThe coordinate system’s origin (in ECEF coordinates) with respect to the datum.
getOrigin in class CoordinateSystempublic void toECEFLocation(Vector3 vec, Vector3 ecf)
CoordinateSystemConverts a location vector from this coordinate system to ECEF.
toECEFLocation in class CoordinateSystemvec - a location vector in this coordinate systemecf - a vector into which the result (in ECEF coordinates) will be written.public void fromECEFLocation(Vector3 ecf, Vector3 vec)
CoordinateSystemConverts a location vector from ECEF coordinates to this coordinate system.
fromECEFLocation in class CoordinateSystemecf - a location vector in ECEF coordinates.vec - a vector into which the result (in this coordinate system) will be written.public void toECEF(Vector3 vec, Vector3 ecf)
CoordinateSystemConverts a non-location vector from this coordinate system to ECEF. Unlike toECEFLocation, this method does not translate the vector.
toECEF in class CoordinateSystemvec - a non-location vector in this coordinate systemecf - a vector into which the result (in ECEF coordinates) will be written.public void fromECEF(Vector3 ecf, Vector3 vec)
CoordinateSystemConverts a non-location vector from ECEF coordinates to this coordinate system. Unlike toECEFLocation, this method does not translate the vector.
fromECEF in class CoordinateSystemecf - a non-location vector in ECEF coordinates.vec - a vector into which the result (in this coordinate system) will be written.