getOrigIndexByLayerCoord

get line index in origin array by layer line index and layer number

size_t
getOrigIndexByLayerCoord
pure
(
A
)
(
in A[] size
,
size_t dimNo
,
size_t layerIndex
,
size_t layerNo
)
if (
isIntegral!A
)
in { assert (isAllCompPositive(size), "negative size"); assert (dimNo < size.length); }

Meta