|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.animation.AnimationSupport
public class AnimationSupport
| Constructor Summary | |
|---|---|
AnimationSupport()
|
|
| Method Summary | |
|---|---|
static double |
angularRatio(Angle x,
Angle y)
Calculate the angular ratio between two angles |
static double |
basicInterpolant(double interpolant,
double startInterpolant,
double stopInterpolant,
int maxSmoothing)
Calculate a normalized, smoothed interpolant |
static double |
clampDouble(double value,
double min,
double max)
Clamps a value between a minimum and maximum |
static long |
getScaledTimeMillisecs(Angle begin,
Angle end,
Angle max,
long minTimeMillisecs,
long maxTimeMillisecs)
Calculate a scaled tiome based on the ratio of the angular distance between the begin and
end angles over the max value. |
static long |
getScaledTimeMillisecs(double beginZoom,
double endZoom,
long minTimeMillisecs,
long maxTimeMillisecs)
Calculate a scaled time based on the ratio of the distance between the beginZoom and
endZoom distances over the larger of the beginZoom and endZoom. |
static long |
getScaledTimeMillisecs(LatLon beginLatLon,
LatLon endLatLon,
long minTimeMillis,
long maxTimeMillis)
Calcualte a scaled time based on the great circle distance between two points. |
static double |
interpolantNormalized(double amount,
double startAmount,
double stopAmount)
Normalize an interpolant value |
static double |
interpolantSmoothed(double interpolant,
int smoothingIterations)
Smooth an interpolant value using hermite smoothing |
static double |
mixDouble(double amount,
double value1,
double value2)
Calculate the linear interpolation between two values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnimationSupport()
| Method Detail |
|---|
public static double angularRatio(Angle x,
Angle y)
x - The numeratory - The denominator
x/y>
public static double basicInterpolant(double interpolant,
double startInterpolant,
double stopInterpolant,
int maxSmoothing)
interpolant - the unsmoothed, unnormalized interpolantstartInterpolant - the lower end of interpolant rangestopInterpolant - the higher end of the interpolant rangemaxSmoothing - the numver of iterations to smooth.
public static double clampDouble(double value,
double min,
double max)
value - the value to clamomin - the minimummax - the maximum
public static long getScaledTimeMillisecs(Angle begin,
Angle end,
Angle max,
long minTimeMillisecs,
long maxTimeMillisecs)
begin and
end angles over the max value.
begin - the begin angleend - the end anglemax - the maximun number of degreesminTimeMillisecs - the minimum length of timemaxTimeMillisecs - the maximum length of time
public static long getScaledTimeMillisecs(double beginZoom,
double endZoom,
long minTimeMillisecs,
long maxTimeMillisecs)
beginZoom and
endZoom distances over the larger of the beginZoom and endZoom.
beginZoom - the begin zoom valueendZoom - the end zoom valueminTimeMillisecs - the minimum length of timemaxTimeMillisecs - the maximum length of time
public static long getScaledTimeMillisecs(LatLon beginLatLon,
LatLon endLatLon,
long minTimeMillis,
long maxTimeMillis)
minLengthMillis and the maxLengthMillis using the ratio
of the spherical distance between the given positions over 180 degrees.
beginLatLon - The first geographic positionendLatLon - The second geographio positionminTimeMillis - The minimum length of tinemaxTimeMillis - The maximum length of time
public static double interpolantNormalized(double amount,
double startAmount,
double stopAmount)
amount - The value to normalizestartAmount - The lower end of the rangestopAmount - The upper end of the range
public static double interpolantSmoothed(double interpolant,
int smoothingIterations)
interpolant - The interpolantsmoothingIterations - the number of smoothing iterations
public static double mixDouble(double amount,
double value1,
double value2)
amount - The interpolant, a number between 0 and 1.value1 - The minimum value of the rangevalue2 - The maximum value of the range
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||