|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.A_Angle<AngleMathematical>
uavsim.datatypes.AngleMathematical
public class AngleMathematical
Defines the shared aspects of a mathematical angle in degrees, which has zero degrees at the right and moves counterclockwise.
| Field Summary | |
|---|---|
static AngleMathematical |
ANGLE_000
common predefined angles in terms of degrees |
static AngleMathematical |
ANGLE_045
|
static AngleMathematical |
ANGLE_090
|
static AngleMathematical |
ANGLE_135
|
static AngleMathematical |
ANGLE_180
|
static AngleMathematical |
ANGLE_225
|
static AngleMathematical |
ANGLE_270
|
static AngleMathematical |
ANGLE_315
|
static AngleMathematical |
ANGLE_360
|
static AngleMathematical[] |
ANGLES
the cardinal angles |
static AngleMathematical |
CLOCK_0130
common predefined angles in terms of clock position |
static AngleMathematical |
CLOCK_0300
|
static AngleMathematical |
CLOCK_0430
|
static AngleMathematical |
CLOCK_0600
|
static AngleMathematical |
CLOCK_0730
|
static AngleMathematical |
CLOCK_0900
|
static AngleMathematical |
CLOCK_1030
|
static AngleMathematical |
CLOCK_1200
|
private static double |
DEFAULT_ANGLE
the default angle |
| Constructor Summary | |
|---|---|
AngleMathematical()
Creates an angle object with a default angle of zero. |
|
AngleMathematical(double angle)
Creates an angle object. |
|
| Method Summary | |
|---|---|
AngleMathematical |
add_(AngleMathematical angle)
Adds another unit to this one. |
AngleNavigational |
convertToAngleNavigational()
Converts this angle to a navigational angle. |
AttitudePitch |
convertToPitch()
Converts this angle zzz +-90 |
AngleMathematical |
interpolate(AngleMathematical angle,
Scaler scaler)
Interpolates between this angle and another. |
AngleMathematical |
interpolate(AngleMathematical angle,
Scaler scaler,
boolean isOverShortestPath)
Interpolates between this angle and another. |
boolean |
isShortestPathClockwise(AngleMathematical angle)
Determines whether the shortest direction between this angle and another is clockwise. |
AngleMathematical |
negate()
Negates this angle (by taking its negative value) and normalizes it. |
AngleMathematical |
reciprocate()
Reciprocates this angle (by adding 180) and normalizes it. |
AngleMathematical |
subtract_(AngleMathematical 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 AngleMathematical ANGLE_000
public static final AngleMathematical ANGLE_045
public static final AngleMathematical ANGLE_090
public static final AngleMathematical ANGLE_135
public static final AngleMathematical ANGLE_180
public static final AngleMathematical ANGLE_225
public static final AngleMathematical ANGLE_270
public static final AngleMathematical ANGLE_315
public static final AngleMathematical ANGLE_360
public static final AngleMathematical[] ANGLES
public static final AngleMathematical CLOCK_0130
public static final AngleMathematical CLOCK_0300
public static final AngleMathematical CLOCK_0430
public static final AngleMathematical CLOCK_0600
public static final AngleMathematical CLOCK_0730
public static final AngleMathematical CLOCK_0900
public static final AngleMathematical CLOCK_1030
public static final AngleMathematical CLOCK_1200
private static final double DEFAULT_ANGLE
| Constructor Detail |
|---|
public AngleMathematical()
public AngleMathematical(double angle)
angle - - the angle in mathematical degrees. Use 359.99 for fill-circle rings xxx| Method Detail |
|---|
public AngleMathematical add_(AngleMathematical angle)
angle - - the unit
public AngleNavigational convertToAngleNavigational()
public AttitudePitch convertToPitch()
public AngleMathematical interpolate(AngleMathematical angle,
Scaler scaler)
interpolate in class A_Angle<AngleMathematical>angle - - the ending anglescaler - - the scaler for the interpolated point
public AngleMathematical interpolate(AngleMathematical angle,
Scaler scaler,
boolean isOverShortestPath)
interpolate in class A_Angle<AngleMathematical>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(AngleMathematical angle)
isShortestPathClockwise in class A_Angle<AngleMathematical>angle - - the other angle
public AngleMathematical negate()
public AngleMathematical reciprocate()
public AngleMathematical subtract_(AngleMathematical 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 | ||||||||