CoordinateArraySequence.withDimensionMeasures constructor
CoordinateArraySequence.withDimensionMeasures(
- List<
Coordinate> ? coordinates, - int dimension,
- int measures
Constructs a sequence based on the given array of {@link Coordinate}s (the array is not copied).
@param coordinates the coordinate array that will be referenced. @param dimension the dimension of the coordinates
Implementation
CoordinateArraySequence.withDimensionMeasures(
this.coordinates, int dimension, int measures) {
this.dimension = dimension;
this.measures = measures;
if (coordinates == null) {
this.coordinates = [];
}
enforceArrayConsistency(this.coordinates!);
}