Class RoundEarthMethod

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

public class RoundEarthMethod extends VRHorzCalcMethod
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    Get the swing based pane for the method
    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.
    Get the FX based settings pane for the method
    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 calc, including those in the refraction method use the angle 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 Details

    • RoundEarthMethod

      public RoundEarthMethod(VRControl vrControl)
  • 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 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 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

      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

      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

      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
      Returns:
      distnace to horizon in metres.
    • getRangeMethodPane

      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

      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