Double constructor

Double(
  1. List<double> coords,
  2. int dimension,
  3. int measures
)

Builds a new packed coordinate sequence

@param coords an array of values that contains the ordinate values of the sequence @param dimension the total number of ordinates that make up a {@link Coordinate} in this sequence. @param measures the number of measure-ordinates each {@link Coordinate} in this sequence has.

Implementation

Double(List<double> coords, int dimension, int measures)
    : super(dimension, measures) {
  if (coords.length % dimension != 0) {
    throw ArgumentError("Packed array does not contain " +
        "an integral number of coordinates");
  }
  this.coords = coords;
}