videoRangePanel

Class RoundEarthMethod

• Method Summary

Methods
Modifier and Type Method and Description
void configure()
RangeDialogPanel dialogPanel()
double getAngle(double height, double range)
Converts a range into an angle below the horizon.
double getHorizonDistance(double height)
Calculate the distance to the horizon from a given height.
double getRange(double height, double angle)
Converts a height and an angle below the horizon to a distance in metres.
double psiFromRange(double height, double range)
Convert a range to an angle up from the vertical (cosine rule).
double rangeFromPsi(double height, double psi)
Many calcls, including those in the refractionmethoduse the anlge from the vertical, so put that as a separate calculation.
• Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
• Constructor Detail

• RoundEarthMethod

public RoundEarthMethod(VRControl vrControl)
• Method Detail

• configure

public void configure()
• getRange

public double getRange(double height,
double angle)
Description copied from class: VRHorzCalcMethod
Converts a height and an angle below the horizon to a distance in metres.
Specified by:
getRange in class VRHorzCalcMethod
Parameters:
height - platform height (metres)
angle - angle below the horizon (radians)
Returns:
distance in metres.
• rangeFromPsi

public double rangeFromPsi(double height,
double psi)
Many calcls, including those in the refractionmethoduse the anlge from the vertical, so put that as a separate calculation.

Eq. 1. From Leaper and Gordon.

Specified by:
rangeFromPsi in class VRHorzCalcMethod
Parameters:
height - camera height
psi - angle up from vertical
Returns:
distance to object.
• getAngle

public double getAngle(double height,
double range)
Description copied from class: VRHorzCalcMethod
Converts a range into an angle below the horizon.

Or returns -1 if the range is beyond the horizon.

Specified by:
getAngle in class VRHorzCalcMethod
Parameters:
height - platofrm height (metres)
range - range to object.
Returns:
• psiFromRange

public double psiFromRange(double height,
double range)
Convert a range to an angle up from the vertical (cosine rule).
Specified by:
psiFromRange in class VRHorzCalcMethod
Parameters:
height - platofrm height
range - range to object
Returns: