Package videoRangePanel
Class RoundEarthMethod
java.lang.Object
videoRangePanel.VRHorzCalcMethod
videoRangePanel.RoundEarthMethod
- Direct Known Subclasses:
 RefractionMethod
- 
Field Summary
FieldsFields inherited from class videoRangePanel.VRHorzCalcMethod
earthRadius, gravity - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidGet the swing based pane for the methoddoublegetAngle(double height, double range) Converts a range into an angle below the horizon.doublegetHorizonDistance(double height) Calculate the distance to the horizon from a given height.doublegetRange(double height, double angle) Converts a height and an angle below the horizon to a distance in metres.SettingsPane<?> Get the FX based settings pane for the methoddoublepsiFromRange(double height, double range) Convert a range to an angle up from the vertical (cosine rule).doublerangeFromPsi(double height, double psi) Many calc, including those in the refraction method use the angle from the vertical, so put that as a separate calculation.Methods inherited from class videoRangePanel.VRHorzCalcMethod
getHorizonAngle 
- 
Field Details
- 
vrControl
 
 - 
 - 
Constructor Details
- 
RoundEarthMethod
 
 - 
 - 
Method Details
- 
configure
public void configure() - 
getRange
public double getRange(double height, double angle) Description copied from class:VRHorzCalcMethodConverts a height and an angle below the horizon to a distance in metres.- Specified by:
 getRangein classVRHorzCalcMethod- Parameters:
 height- platform height (metres)angle- angle below the horizon (Radians)- Returns:
 - distance in metres.
 
 - 
rangeFromPsi
public double rangeFromPsi(double height, double psi) Many calc, including those in the refraction method use the angle from the vertical, so put that as a separate calculation.Eq. 1. From Leaper and Gordon.
- Specified by:
 rangeFromPsiin classVRHorzCalcMethod- Parameters:
 height- camera heightpsi- angle up from vertical- Returns:
 - distance to object.
 
 - 
getAngle
public double getAngle(double height, double range) Description copied from class:VRHorzCalcMethodConverts a range into an angle below the horizon.Or returns -1 if the range is beyond the horizon.
- Specified by:
 getAnglein classVRHorzCalcMethod- Parameters:
 height- platform height (metres)range- range to object.- Returns:
 - angle in Radians.
 
 - 
psiFromRange
public double psiFromRange(double height, double range) Convert a range to an angle up from the vertical (cosine rule).- Specified by:
 psiFromRangein classVRHorzCalcMethod- Parameters:
 height- platform heightrange- range to object- Returns:
 - angle in radians.
 
 - 
getHorizonDistance
public double getHorizonDistance(double height) Description copied from class:VRHorzCalcMethodCalculate the distance to the horizon from a given height.- Specified by:
 getHorizonDistancein classVRHorzCalcMethod- Parameters:
 height-- Returns:
 - distnace to horizon in metres.
 
 - 
getRangeMethodPane
Description copied from class:VRHorzCalcMethodGet the FX based settings pane for the method- Specified by:
 getRangeMethodPanein classVRHorzCalcMethod- Returns:
 - pane for changing settings.
 
 - 
dialogPanel
Description copied from class:VRHorzCalcMethodGet the swing based pane for the method- Specified by:
 dialogPanelin classVRHorzCalcMethod- Returns:
 - pane for changing settings
 
 
 -