videoRangePanel
Class VRRangeMethod

java.lang.Object
  extended by videoRangePanel.VRRangeMethod
Direct Known Subclasses:
RoundEarthMethod

abstract class VRRangeMethod
extends java.lang.Object


Field Summary
protected static double earthRadius
           
protected static double gravity
           
 
Constructor Summary
VRRangeMethod()
           
 
Method Summary
(package private) abstract  void configure()
           
(package private) abstract  RangeDialogPanel dialogPanel()
           
(package private) abstract  double getAngle(double height, double range)
          Converts a range into an angle below the horizon.
protected  double getHorizonAngle(double height)
          Calculate the horizon dip angle from the horizontal
abstract  double getHorizonDistance(double height)
          Calculate the distance to the horizon from a given height.
(package private) abstract  java.lang.String getName()
           
(package private) abstract  double getRange(double height, double angle)
          Converts a height and an angle below the horizon to a distance in metres.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

earthRadius

protected static final double earthRadius
See Also:
Constant Field Values

gravity

protected static final double gravity
See Also:
Constant Field Values
Constructor Detail

VRRangeMethod

VRRangeMethod()
Method Detail

getRange

abstract double getRange(double height,
                         double angle)
Converts a height and an angle below the horizon to a distance in metres.

Parameters:
height - platform height (metres)
angle - angle below the horizon (radians)
Returns:
distance in metres.

getAngle

abstract double getAngle(double height,
                         double range)
Converts a range into an angle below the horizon.

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

Parameters:
height - platofrm height (metres)
range - range to object.
Returns:
angle in radians.

configure

abstract void configure()

dialogPanel

abstract RangeDialogPanel dialogPanel()

getName

abstract java.lang.String getName()

getHorizonAngle

protected double getHorizonAngle(double height)
Calculate the horizon dip angle from the horizontal

Parameters:
height - Platform height
Returns:
dip angle in radians.

getHorizonDistance

public abstract double getHorizonDistance(double height)
Calculate the distance to the horizon from a given height.

Parameters:
height -
Returns:
distnace to horizon in metres.