|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectvideoRangePanel.VRRangeMethod
videoRangePanel.RoundEarthMethod
public class RoundEarthMethod
| Field Summary | |
|---|---|
protected VRControl |
vrControl
|
| Fields inherited from class videoRangePanel.VRRangeMethod |
|---|
earthRadius, gravity |
| Constructor Summary | |
|---|---|
RoundEarthMethod(VRControl vrControl)
|
|
| Method Summary | |
|---|---|
void |
configure()
|
RangeDialogPanel |
dialogPanel()
|
(package private) 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. |
(package private) java.lang.String |
getName()
|
double |
getRange(double height,
double angle)
Converts a height and an angle below the horizon to a distance in metres. |
protected double |
psiFromRange(double height,
double range)
Convert a range to an angle up from the vertical (cosine rule). |
protected double |
rangeFromPsi(double height,
double psi)
Many calcls, including those in the refractionmethoduse the anlge from the vertical, so put that as a separate calculation. |
| Methods inherited from class videoRangePanel.VRRangeMethod |
|---|
getHorizonAngle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected VRControl vrControl
| Constructor Detail |
|---|
public RoundEarthMethod(VRControl vrControl)
| Method Detail |
|---|
public void configure()
configure in class VRRangeMethodpublic RangeDialogPanel dialogPanel()
dialogPanel in class VRRangeMethod
public double getRange(double height,
double angle)
VRRangeMethod
getRange in class VRRangeMethodheight - platform height (metres)angle - angle below the horizon (radians)
protected double rangeFromPsi(double height,
double psi)
Eq. 1. From Leaper and Gordon.
height - camera heightpsi - angle up from vertical
double getAngle(double height,
double range)
VRRangeMethodOr returns -1 if the range is beyond the horizon.
getAngle in class VRRangeMethodheight - platofrm height (metres)range - range to object.
protected double psiFromRange(double height,
double range)
height - platofrm heightrange - range to object
java.lang.String getName()
getName in class VRRangeMethodpublic double getHorizonDistance(double height)
VRRangeMethod
getHorizonDistance in class VRRangeMethod
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||