GeometricPrimitiveCoverageGridGetGridPointRangeWithWrapping Method |
Gets the range in the coordinate that the grid point indicated by currentIndex refers to. This range wraps from the maximum index to zero
and is most useful when extracting the range on an angular coordinate.
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[] GetGridPointRangeWithWrapping(
IList<double> grid,
int currentIndex
)
Protected Function GetGridPointRangeWithWrapping (
grid As IList(Of Double),
currentIndex As Integer
) As Double()
protected:
array<double>^ GetGridPointRangeWithWrapping(
IList<double>^ grid,
int currentIndex
)
member GetGridPointRangeWithWrapping :
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