Package videoRangePanel
Class RoundEarthMethod
java.lang.Object
videoRangePanel.VRHorzCalcMethod
videoRangePanel.RoundEarthMethod
- Direct Known Subclasses:
RefractionMethod
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Get the swing based pane for the methoddouble
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.SettingsPane<?>
Get the FX based settings pane for the methoddouble
psiFromRange
(double height, double range) Convert a range to an angle up from the vertical (cosine rule).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.
-
Constructor Details
-
RoundEarthMethod
-
-
Method Details
-
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 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:
rangeFromPsi
in 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:VRHorzCalcMethod
Converts a range into an angle below the horizon.Or returns -1 if the range is beyond the horizon.
- Specified by:
getAngle
in 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:
psiFromRange
in classVRHorzCalcMethod
- Parameters:
height
- platform heightrange
- range to object- Returns:
- angle in radians.
-
getHorizonDistance
public double getHorizonDistance(double height) Description copied from class:VRHorzCalcMethod
Calculate the distance to the horizon from a given height.- Specified by:
getHorizonDistance
in classVRHorzCalcMethod
- Returns:
- distnace to horizon in metres.
-
getRangeMethodPane
Description copied from class:VRHorzCalcMethod
Get the FX based settings pane for the method- Specified by:
getRangeMethodPane
in classVRHorzCalcMethod
- Returns:
- pane for changing settings.
-
dialogPanel
Description copied from class:VRHorzCalcMethod
Get the swing based pane for the method- Specified by:
dialogPanel
in classVRHorzCalcMethod
- Returns:
- pane for changing settings
-