Click or drag to resize

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.1.418.0 (24.1.418.0)
protected double[] GetGridPointRangeWithWrapping(
	IList<double> grid,
	int currentIndex


Type: System.Collections.GenericIListDouble
The sorted grid of values in a single coordinate.
Type: SystemInt32
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