Package uk.ac.starlink.ttools.plot2
Interface CoordSequence
-
- All Superinterfaces:
uk.ac.starlink.util.Splittable<CoordSequence>
,uk.ac.starlink.util.SplittableSequence<CoordSequence>
- All Known Implementing Classes:
DataPosSequence
public interface CoordSequence extends uk.ac.starlink.util.SplittableSequence<CoordSequence>
Interface for iterating over coordinates. At each step, an N-dimensional coordinate array is available. This sequence is splittable, so suitable in priniciple for parallel processing.- Since:
- 13 Seb 2019
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double[]
getCoords()
Returns the array used to store the coordinates for the current position in this sequence.
-
-
-
Method Detail
-
getCoords
double[] getCoords()
Returns the array used to store the coordinates for the current position in this sequence. It contains the coordinates corresponding to the last call of theSplittableSequence.next()
method. Its contents before the first call or after a call returning false are undefined.This method returns the same value throughout the lifetime of this sequence, it's only the contents that change to reflect the current state of the iteration.
-
-