|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.Velocity
public class Velocity
Defines a velocity as a speed and direction as a navigational angle. The units are arbitrary as either miles per hour or knots. No internal calculations rely on the units. xxx consider Speed and Groundspeed datatypes
| Field Summary | |
|---|---|
private AngleNavigational |
_direction
the angle |
private Airspeed |
_speed
the speed |
| Constructor Summary | |
|---|---|
Velocity()
Creates a velocity object with a default angle and speed of zero. |
|
Velocity(AngleNavigational angle,
Airspeed speed)
Creates a velocity object. |
|
| Method Summary | |
|---|---|
Velocity |
add_(Velocity velocity)
Adds another unit to this one. |
int |
compareTo(Velocity velocity)
This always returns zero. |
CoordinateCartesianRelative |
generateDeltas()
Generates a relative Cartesian coordinate from the angle and speed of this velocity. |
AngleNavigational |
getDirection()
Gets the angle. |
Airspeed |
getSpeed()
Gets the speed. |
double |
getValue_()
Returns the numerical value of this unit. |
boolean |
hasSpeed()
Returns whether the velocity has a speed; otherwise, its direction is not meaningful. |
Velocity |
interpolate(Velocity velocity,
Scaler scaler)
Interpolates between this velocity and another. |
Velocity |
subtract_(Velocity velocity)
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 |
|---|
private final AngleNavigational _direction
private final Airspeed _speed
| Constructor Detail |
|---|
public Velocity()
public Velocity(AngleNavigational angle,
Airspeed speed)
angle - - the anglespeed - - the speed| Method Detail |
|---|
public Velocity add_(Velocity velocity)
add_ in interface I_Unitable<Velocity>velocity - - the unit
public int compareTo(Velocity velocity)
compareTo in interface java.lang.Comparable<Velocity>public CoordinateCartesianRelative generateDeltas()
public AngleNavigational getDirection()
public Airspeed getSpeed()
public double getValue_()
getValue_ in interface I_Unitable<Velocity>public boolean hasSpeed()
public Velocity interpolate(Velocity velocity,
Scaler scaler)
velocity - - the second velocityscaler - - the scaler between the velocities
public Velocity subtract_(Velocity velocity)
subtract_ in interface I_Unitable<Velocity>velocity - - 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 | ||||||||