public class TLcdHypsometricOrientationAngle extends Object implements ILcdHypsometricValueProvider
This ILcdHypsometricValueProvider computes the angle between a given reference direction in the xy plane and the direction of steepest descent. The angle is expressed in radians, counter-clockwise, over the full circle [0, 2*pi].
Constructor and Description |
---|
TLcdHypsometricOrientationAngle()
Creates a new TLcdHypsometricOrientationAngle for the reference direction
(0, 1).
|
TLcdHypsometricOrientationAngle(double aReferenceDirectionX,
double aReferenceDirectionY)
Creates a new TLcdHypsometricOrientationAngle for the given reference
direction.
|
TLcdHypsometricOrientationAngle(double aReferenceDirectionX,
double aReferenceDirectionY,
ILcdHypsometricNormalProvider aHypsometricNormalProvider)
Creates a new TLcdHypsometricOrientationAngle for the given reference
direction and normal provider.
|
Modifier and Type | Method and Description |
---|---|
double |
computeValue(ILcdMatrixView aMatrixView,
int aX,
int aY,
double aElevationScale)
Computes the hypsometric value at the given point.
|
Rectangle |
getFootPrint()
Returns the foot print of this provider.
|
ILcdHypsometricNormalProvider |
getHypsometricNormalProvider()
Returns the normal provider.
|
double |
getMaximumValue()
Returns the maximum hypsometric value that this provider may return.
|
double |
getMinimumValue()
Returns the minimum hypsometric value that this provider may return.
|
double |
getReferenceDirectionX()
Returns the x component of the reference direction.
|
double |
getReferenceDirectionY()
Returns the y component of the reference direction.
|
public TLcdHypsometricOrientationAngle()
public TLcdHypsometricOrientationAngle(double aReferenceDirectionX, double aReferenceDirectionY)
aReferenceDirectionX
- the x component of the reference direction.aReferenceDirectionY
- the y component of the reference direction.public TLcdHypsometricOrientationAngle(double aReferenceDirectionX, double aReferenceDirectionY, ILcdHypsometricNormalProvider aHypsometricNormalProvider)
aReferenceDirectionX
- the x component of the reference direction.aReferenceDirectionY
- the y component of the reference direction.aHypsometricNormalProvider
- the normal provider.public double getReferenceDirectionX()
public double getReferenceDirectionY()
public ILcdHypsometricNormalProvider getHypsometricNormalProvider()
public Rectangle getFootPrint()
ILcdHypsometricValueProvider
getFootPrint
in interface ILcdHypsometricValueProvider
public double getMinimumValue()
ILcdHypsometricValueProvider
getMinimumValue
in interface ILcdHypsometricValueProvider
public double getMaximumValue()
ILcdHypsometricValueProvider
getMaximumValue
in interface ILcdHypsometricValueProvider
public double computeValue(ILcdMatrixView aMatrixView, int aX, int aY, double aElevationScale)
ILcdHypsometricValueProvider
computeValue
in interface ILcdHypsometricValueProvider
aMatrixView
- the matrix containing elevation values.aX
- the x ordinate in the matrix.aY
- the y ordinate in the matrix.aElevationScale
- the scale of the elevation values in the tiles,
expressed in matrix units per tile elevation unit.