public class RefractionMethod extends RoundEarthMethod implements PamSettings
Constructor and Description |
---|
RefractionMethod(VRControl vrControl) |
Modifier and Type | Method and Description |
---|---|
RangeDialogPanel |
dialogPanel() |
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.
|
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
configure, psiFromRange, rangeFromPsi
public RefractionMethod(VRControl vrControl)
public double getRange(double height, double angle)
VRHorzCalcMethod
getRange
in class RoundEarthMethod
height
- platform height (metres)angle
- angle below the horizon (radians)public double getHorizonDistance(double height)
VRHorzCalcMethod
getHorizonDistance
in class RoundEarthMethod
public double getAngle(double height, double range)
VRHorzCalcMethod
Or returns -1 if the range is beyond the horizon.
getAngle
in class RoundEarthMethod
height
- platofrm height (metres)range
- range to object.public RangeDialogPanel dialogPanel()
dialogPanel
in class RoundEarthMethod
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public java.lang.String getUnitName()
getUnitName
in interface PamSettings
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings