dimensionOf

inline fun <D : Dimension> dimensionOf(dim: Int): D

Returns specific Dimension by integer dim.