asXYData

Represent a ColumnarData as an XYColumnarData. The presence or respective columns is checked on creation.


fun <T> Structure2D<T>.asXYData(xIndex: Int = 0, yIndex: Int = 1): XYColumnarData<T, T, T>(source)

A zero-copy method to represent a Structure2D as a two-column x-y data. There could more than two columns in the structure.