as2D

fun <T> StructureND<T>.as2D(): Structure2D<T>
fun <T> MutableStructureND<T>.as2D(): MutableStructure2D<T>

Represents a StructureND as Structure2D. Throws runtime error in case of dimension mismatch.