|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.Attitude
public class Attitude
Defines attitude in three degrees of freedom for pitch, roll, and yaw.
| Field Summary | |
|---|---|
(package private) AttitudePitch |
_pitch
the pitch |
(package private) AttitudeRoll |
_roll
the roll |
(package private) AttitudeYaw |
_yaw
the yaw |
static Attitude |
NEUTRAL
zzz |
| Constructor Summary | |
|---|---|
Attitude()
Creates an attitude object with the defaults defined for each of the degrees of freedom. |
|
Attitude(AttitudePitch pitch)
Creates an attitude object as defined for its degrees of freedom. |
|
Attitude(AttitudePitch pitch,
AttitudeRoll roll)
Creates an attitude object as defined for its degrees of freedom. |
|
Attitude(AttitudePitch pitch,
AttitudeRoll roll,
AttitudeYaw yaw)
Creates an attitude object as defined for its degrees of freedom. |
|
Attitude(AttitudePitch pitch,
AttitudeYaw yaw)
Creates an attitude object as defined for its degrees of freedom. |
|
Attitude(AttitudeRoll roll)
Creates an attitude object as defined for its degrees of freedom. |
|
Attitude(AttitudeRoll roll,
AttitudeYaw yaw)
Creates an attitude object as defined for its degrees of freedom. |
|
Attitude(AttitudeYaw yaw)
Creates an attitude object as defined for its degrees of freedom. |
|
| Method Summary | |
|---|---|
Attitude |
add_(Attitude attitude)
Adds another unit to this one. |
int |
compareTo(Attitude attitude)
always returns 0 |
AttitudePitch |
getPitch()
Gets the pitch as a mutable object. |
AttitudeRoll |
getRoll()
Gets the roll as a mutable object. |
double |
getValue_()
Returns the numerical value of this unit. |
AttitudeYaw |
getYaw()
Gets the yaw as a mutable object. |
Attitude |
subtract_(Attitude attitude)
Subtract another unit from this one. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
AttitudePitch _pitch
AttitudeRoll _roll
AttitudeYaw _yaw
public static final Attitude NEUTRAL
| Constructor Detail |
|---|
public Attitude()
public Attitude(AttitudePitch pitch)
pitch - - the pitch
public Attitude(AttitudePitch pitch,
AttitudeRoll roll)
pitch - - the pitchroll - - the roll
public Attitude(AttitudePitch pitch,
AttitudeRoll roll,
AttitudeYaw yaw)
pitch - - the pitchroll - - the rollyaw - - the yaw
public Attitude(AttitudePitch pitch,
AttitudeYaw yaw)
pitch - - te pitchyaw - - the yawpublic Attitude(AttitudeRoll roll)
roll - - the roll
public Attitude(AttitudeRoll roll,
AttitudeYaw yaw)
roll - - the rollyaw - - the yawpublic Attitude(AttitudeYaw yaw)
yaw - - the yaw| Method Detail |
|---|
public Attitude add_(Attitude attitude)
add_ in interface I_Unitable<Attitude>attitude - - the unit
public int compareTo(Attitude attitude)
compareTo in interface java.lang.Comparable<Attitude>public AttitudePitch getPitch()
public AttitudeRoll getRoll()
public double getValue_()
getValue_ in interface I_Unitable<Attitude>public AttitudeYaw getYaw()
public Attitude subtract_(Attitude attitude)
subtract_ in interface I_Unitable<Attitude>attitude - - the unit
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||