Click or drag to resize

GeometricPrimitiveCoverageGrid.GetGridPointRangeWithWrapping 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.3.420.0 (24.3.420.0)
Syntax
protected double[] GetGridPointRangeWithWrapping(
	IList<double> grid,
	int currentIndex
)

Parameters

grid
Type: System.Collections.Generic.IList<Double>
The sorted grid of values in a single coordinate.
currentIndex
Type: System.Int32
The index of the current grid point.

Return Value

Type:Double[]
The 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