Class RoundEarthMethod

java.lang.Object
videoRangePanel.VRHorzCalcMethod
videoRangePanel.RoundEarthMethod
Direct Known Subclasses:
RefractionMethod

public class RoundEarthMethod extends VRHorzCalcMethod
  • Field Details Link icon

  • Constructor Details Link icon

    • RoundEarthMethod Link icon

      public RoundEarthMethod(VRControl vrControl)
  • Method Details Link icon

    • configure Link icon

      public void configure()
    • getRange Link icon

      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 Link icon

      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 class VRHorzCalcMethod
      Parameters:
      height - camera height
      psi - angle up from vertical
      Returns:
      distance to object.
    • getAngle Link icon

      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 - platform height (metres)
      range - range to object.
      Returns:
      angle in Radians.
    • psiFromRange Link icon

      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 - platform height
      range - range to object
      Returns:
      angle in radians.
    • getHorizonDistance Link icon

      public double getHorizonDistance(double height)
      Description copied from class: VRHorzCalcMethod
      Calculate the distance to the horizon from a given height.
      Specified by:
      getHorizonDistance in class VRHorzCalcMethod
      Parameters:
      height -
      Returns:
      distnace to horizon in metres.
    • getRangeMethodPane Link icon

      public SettingsPane<?> getRangeMethodPane()
      Description copied from class: VRHorzCalcMethod
      Get the FX based settings pane for the method
      Specified by:
      getRangeMethodPane in class VRHorzCalcMethod
      Returns:
      pane for changing settings.
    • dialogPanel Link icon

      public RangeDialogPanel dialogPanel()
      Description copied from class: VRHorzCalcMethod
      Get the swing based pane for the method
      Specified by:
      dialogPanel in class VRHorzCalcMethod
      Returns:
      pane for changing settings