GeometricPrimitiveCoverageGridGetGridPointRange Method |
Gets the range in the coordinate that the grid point indicated by currentIndex refers to.
Namespace:
AGI.Foundation.Geometry.Discrete
Assembly:
AGI.Foundation.Spatial (in AGI.Foundation.Spatial.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax protected double[] GetGridPointRange(
IList<double> grid,
int currentIndex
)
Protected Function GetGridPointRange (
grid As IList(Of Double),
currentIndex As Integer
) As Double()
protected:
array<double>^ GetGridPointRange(
IList<double>^ grid,
int currentIndex
)
member GetGridPointRange :
grid : IList<float> *
currentIndex : int -> float[]
Parameters
- grid
- Type: System.Collections.GenericIListDouble
The sorted grid of values in a single coordinate. - currentIndex
- Type: SystemInt32
The index of the current grid point.
Return Value
Type:
DoubleThe lower and upper bound of the indicated grid point's span.
On each end of the span the point returned will be halfway to the next grid point, or the point itself in case this point is an endpoint.
See Also