/// <summary> /// Creates an instance of this class with an initial <paramref name="capacity"/> /// </summary> /// <param name="capacity">The initial capacity of the buffer.</param> /// <param name="nullValue">The value that should be treated as null.</param> /// <param name="lessThan">This optional parameter controls whether a value has to be less than <paramref name="nullValue"/> to be considered <c>null</c></param> public CoordinateBuffer(int capacity, double nullValue, bool lessThan = false) { _coordinates = new List <XYZM>(capacity); _doubleNoDataChecker = new DoubleNoDataChecker(nullValue, lessThan); }
/// <summary> /// Creates an instance of this class /// </summary> public CoordinateBuffer() { _coordinates = new List <XYZM>(); _doubleNoDataChecker = new DoubleNoDataChecker(Coordinate.NullOrdinate); }
/// <summary> /// Creates an instance of this class with an initial <paramref name="capacity"/> /// </summary> /// <param name="capacity">The initial capacity of the buffer.</param> public CoordinateBuffer(int capacity) { _coordinates = new List <XYZM>(capacity); _doubleNoDataChecker = new DoubleNoDataChecker(double.NaN); }
/// <summary> /// Creates an instance of this class with <paramref name="nullValue"/> defining the values that should be treated as null. /// </summary> /// <param name="nullValue">The value that should be treated as null.</param> /// <param name="lessThan">This optional parameter controls whether a value has to be less than <see cref="nullValue"/> to be considered <c>null</c></param> public CoordinateBuffer(double nullValue, bool lessThan = false) { _coordinates = new List <double[]>(); _doubleNoDataChecker = new DoubleNoDataChecker(nullValue, lessThan); }