videoRangePanel
Class VRRangeMethod
java.lang.Object
videoRangePanel.VRRangeMethod
- Direct Known Subclasses:
- RoundEarthMethod
abstract class VRRangeMethod
- extends java.lang.Object
|
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 |
earthRadius
protected static final double earthRadius
- See Also:
- Constant Field Values
gravity
protected static final double gravity
- See Also:
- Constant Field Values
VRRangeMethod
VRRangeMethod()
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.