public abstract class VRHorzCalcMethod
extends java.lang.Object
Constructor and Description |
---|
VRHorzCalcMethod() |
Modifier and Type | Method and Description |
---|---|
abstract RangeDialogPanel |
dialogPanel() |
abstract double |
getAngle(double height,
double range)
Converts a range into an angle below the horizon.
|
abstract double |
getHorizonDistance(double height)
Calculate the distance to the horizon from a given height.
|
abstract double |
getRange(double height,
double angle)
Converts a height and an angle below the horizon to a distance in metres.
|
abstract double |
psiFromRange(double height,
double range)
Get the pitch of the camera from the height and range to target.
|
abstract double |
rangeFromPsi(double height,
double psi)
Get the range from the pitch of the camera and camera height.
|
public abstract double getRange(double height, double angle)
height
- platform height (metres)angle
- angle below the horizon (radians)public abstract double getAngle(double height, double range)
Or returns -1 if the range is beyond the horizon.
height
- platofrm height (metres)range
- range to object.public abstract RangeDialogPanel dialogPanel()
public abstract double getHorizonDistance(double height)
height
- public abstract double rangeFromPsi(double height, double psi)
height-
- height of the camerapsi-
- the angle of the camera in radians. 0-camera pointing downwards (i.e same direction as g). 90 degrees= camera point perpendicular to direction of g;public abstract double psiFromRange(double height, double range)
height-height
- of the camerarange-distance
- to the target from the camera.