TerrainAlongLine.ComputePositionWithMaximumElevationAngle Method (Cartesian, Cartesian, TerrainProvider, Double, Double) |
Computes the point on terrain with the highest elevation angle between the observer and target positions
from the perspective of the position closest to the
Shape.
Namespace:
AGI.Foundation.Terrain
Assembly:
AGI.Foundation.TerrainAnalysis (in AGI.Foundation.TerrainAnalysis.dll) Version: 24.3.420.0 (24.3.420.0)
Syntaxpublic static Cartesian ComputePositionWithMaximumElevationAngle(
Cartesian observerPositionFixed,
Cartesian targetPositionFixed,
TerrainProvider terrainProvider,
double minimumTerrainHeight,
double maximumTerrainHeight
)
Public Shared Function ComputePositionWithMaximumElevationAngle (
observerPositionFixed As Cartesian,
targetPositionFixed As Cartesian,
terrainProvider As TerrainProvider,
minimumTerrainHeight As Double,
maximumTerrainHeight As Double
) As Cartesian
public:
static Cartesian ComputePositionWithMaximumElevationAngle(
Cartesian observerPositionFixed,
Cartesian targetPositionFixed,
TerrainProvider^ terrainProvider,
double minimumTerrainHeight,
double maximumTerrainHeight
)
static member ComputePositionWithMaximumElevationAngle :
observerPositionFixed : Cartesian *
targetPositionFixed : Cartesian *
terrainProvider : TerrainProvider *
minimumTerrainHeight : float *
maximumTerrainHeight : float -> Cartesian
Parameters
- observerPositionFixed
- Type: AGI.Foundation.Coordinates.Cartesian
The position of the observer object, expressed in the reference frame fixed to the
ellipsoid specified by the Shape property of the
terrainProvider.
- targetPositionFixed
- Type: AGI.Foundation.Coordinates.Cartesian
The position of the target object, expressed in the reference frame fixed to the
ellipsoid specified by the Shape property of the
terrainProvider.
- terrainProvider
- Type: AGI.Foundation.Terrain.TerrainProvider
The terrain provider describing the terrain that is potentially obscuring the path
between the two objects.
- minimumTerrainHeight
- Type: System.Double
The minimum height in meters that can be returned by the
TerrainProvider's GetHeightRelativeToShape(Double, Double) method.
Setting this value lower than necessary will not affect the results, but it will decrease
performance. Setting it too high can cause incorrect results. For realistic Earth-based terrain data,
DefaultMinimumTerrainHeight is a safe value to use for this parameter.
- maximumTerrainHeight
- Type: System.Double
The maximum height in meters that can be returned by the
TerrainProvider's GetHeightRelativeToShape(Double, Double) method.
Setting this value higher than necessary will not affect the results, but it will decrease
performance. Setting it too low can cause incorrect results. For realistic Earth-based terrain data,
DefaultMaximumTerrainHeight is a safe value to use for this parameter.
Return Value
Type:
Cartesian
The point on terrain with the highest elevation angle between the observer and target positions
from the perspective of the position closest to the
Shape.
Exceptions
See Also