|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.A_Angle<AngleNavigational>
uavsim.datatypes.AngleNavigational
public class AngleNavigational
Defines the shared aspects of a navigational angle, which has zero degrees (north) at the top and moves clockwise. This also functions as azimuth.
| Field Summary | |
|---|---|
static AngleNavigational |
ANGLE_000
common predefined angles in terms of degrees |
static AngleNavigational |
ANGLE_045
|
static AngleNavigational |
ANGLE_090
|
static AngleNavigational |
ANGLE_135
|
static AngleNavigational |
ANGLE_180
|
static AngleNavigational |
ANGLE_225
|
static AngleNavigational |
ANGLE_270
|
static AngleNavigational |
ANGLE_315
|
static AngleNavigational |
ANGLE_360
|
static AngleNavigational[] |
ANGLES
the cardinal angles |
static AngleNavigational |
CLOCK_0130
common predefined angles in terms of clock position |
static AngleNavigational |
CLOCK_0300
|
static AngleNavigational |
CLOCK_0430
|
static AngleNavigational |
CLOCK_0600
|
static AngleNavigational |
CLOCK_0730
|
static AngleNavigational |
CLOCK_0900
|
static AngleNavigational |
CLOCK_1030
|
static AngleNavigational |
CLOCK_1200
|
private static double |
DEFAULT_ANGLE
the default angle |
| Constructor Summary | |
|---|---|
AngleNavigational()
Creates an angle object with a default angle of zero. |
|
AngleNavigational(double angleDegrees)
Creates an angle object. |
|
| Method Summary | |
|---|---|
AngleNavigational |
add_(AngleNavigational angle)
Adds another unit to this one. |
AngleMathematical |
convertToAngleMathematical()
Converts this angle to a mathematical angle. |
AttitudeYaw |
convertToYaw()
Converts this angle zzz +-180 |
AngleNavigational |
interpolate(AngleNavigational angle,
Scaler scaler)
Interpolates between this angle and another. |
AngleNavigational |
interpolate(AngleNavigational angle,
Scaler scaler,
boolean isOverShortestPath)
Interpolates between this angle and another. |
boolean |
isShortestPathClockwise(AngleNavigational angle)
Determines whether the shortest direction between this angle and another is clockwise. |
AngleNavigational |
negate()
Negates this angle (by taking its negative value) and normalizes it. |
AngleNavigational |
reciprocate()
Reciprocates this angle (by adding 180) and normalizes it. |
AngleNavigational |
subtract_(AngleNavigational angle)
Subtract another unit from this one. |
java.lang.String |
toString()
|
| Methods inherited from class uavsim.datatypes.A_Angle |
|---|
compareTo, formatString, getValue_, getValueAffineRadians, getValueFormatted, getValueInt, getValueRadians, normalizeAngle, offset, scale, scale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final AngleNavigational ANGLE_000
public static final AngleNavigational ANGLE_045
public static final AngleNavigational ANGLE_090
public static final AngleNavigational ANGLE_135
public static final AngleNavigational ANGLE_180
public static final AngleNavigational ANGLE_225
public static final AngleNavigational ANGLE_270
public static final AngleNavigational ANGLE_315
public static final AngleNavigational ANGLE_360
public static final AngleNavigational[] ANGLES
public static final AngleNavigational CLOCK_0130
public static final AngleNavigational CLOCK_0300
public static final AngleNavigational CLOCK_0430
public static final AngleNavigational CLOCK_0600
public static final AngleNavigational CLOCK_0730
public static final AngleNavigational CLOCK_0900
public static final AngleNavigational CLOCK_1030
public static final AngleNavigational CLOCK_1200
private static final double DEFAULT_ANGLE
| Constructor Detail |
|---|
public AngleNavigational()
public AngleNavigational(double angleDegrees)
angleDegrees - - the angle in navigational degrees. Use 359.99 for fill-circle rings xxx| Method Detail |
|---|
public AngleNavigational add_(AngleNavigational angle)
angle - - the unit
public AngleMathematical convertToAngleMathematical()
public AttitudeYaw convertToYaw()
public AngleNavigational interpolate(AngleNavigational angle,
Scaler scaler)
interpolate in class A_Angle<AngleNavigational>angle - - the ending anglescaler - - the scaler for the interpolated point
public AngleNavigational interpolate(AngleNavigational angle,
Scaler scaler,
boolean isOverShortestPath)
interpolate in class A_Angle<AngleNavigational>angle - - the ending anglescaler - - the scaler for the interpolated pointisOverShortestPath - - whether to interpolate over the shortest or longest arc length in the appropriate direction
public boolean isShortestPathClockwise(AngleNavigational angle)
isShortestPathClockwise in class A_Angle<AngleNavigational>angle - - the other angle
public AngleNavigational negate()
public AngleNavigational reciprocate()
public AngleNavigational subtract_(AngleNavigational angle)
angle - - 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 | ||||||||