public class SpecifiedCollectionCoverageGriddingTechnique extends Object implements ICoverageGriddingTechnique
Constructor and Description |
---|
SpecifiedCollectionCoverageGriddingTechnique(Iterable<Double> points)
Initializes the gridding method with the specified collection.
|
Modifier and Type | Method and Description |
---|---|
List<Double> |
grid(Bounds coordinateBounds,
boolean isCyclic)
Grids the coordinate.
|
public SpecifiedCollectionCoverageGriddingTechnique(@Nonnull Iterable<Double> points)
The input collection will be copied and sorted in ascending order, and each point will be verified to be within the bounds.
points
- The collection of points.ArgumentNullException
- Thrown if points
is null
.@Nonnull public final List<Double> grid(@Nonnull Bounds coordinateBounds, boolean isCyclic)
grid
in interface ICoverageGriddingTechnique
coordinateBounds
- The bounds for the coordinate that is to be gridded. These bounds are inclusive.isCyclic
- Indicates if the coordinate is cyclic (i.e. an angle). Winding must be removed before gridding.IllegalStateException
- Thrown if any point within the collection is outside of the bounds of the gridding coordinate.