Click or drag to resize

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

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: 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