TerrainAlongLineComputeTerrainIntersection Method (Cartesian, Cartographic, UnitCartesian, Double, Double, TerrainProvider)
Computes the location of the first intersection with terrain from the provided location along the indicated direction.
representations of the location are provided
which eliminates the need for conversion within the algorithm and results in greater efficiency.
are used for the computation.
AGI.Foundation.TerrainAnalysis (in AGI.Foundation.TerrainAnalysis.dll) Version: 21.2.409.0 (21.2.409.0)
public static Cartographic? ComputeTerrainIntersection(
Public Shared Function ComputeTerrainIntersection (
cartesian As Cartesian,
cartographic As Cartographic,
direction As UnitCartesian,
granularity As Double,
maximumDistance As Double,
terrainProvider As TerrainProvider
) As Cartographic?
static Nullable<Cartographic> ComputeTerrainIntersection(
static member ComputeTerrainIntersection :
cartesian : Cartesian *
cartographic : Cartographic *
direction : UnitCartesian *
granularity : float *
maximumDistance : float *
terrainProvider : TerrainProvider -> Nullable<Cartographic>
- Type: AGI.Foundation.CoordinatesCartesian
The Cartesian representation of the location expressed in the reference frame fixed to the
ellipsoid specified by the Shape property of the terrainProvider.
- Type: AGI.Foundation.CoordinatesCartographic
The planetodetic cartographic representation of the location expressed in the reference frame fixed to the
ellipsoid specified by the Shape property of the
- Type: AGI.Foundation.CoordinatesUnitCartesian
The direction along which to check for intersection with terrain.
- Type: SystemDouble
The sampling step as a positively valued fraction of the terrain resolution.
- Type: SystemDouble
A positively valued limit on the distance in meters along
the indicated direction at which intersection with terrain is no longer checked.
- Type: AGI.Foundation.TerrainTerrainProvider
The terrain provider describing the terrain that is potentially obscuring the path
between the two objects.
The planetodetic location of intersection with terrain expressed in the reference frame fixed to the
ellipsoid specified by the Shape
property of the
or null if no intersection exists. The provided location may be returned
as the point of intersection if it lies on the terrain surface and the indicated direction is directly
into the terrain surface.
Exceptions See Also