const fn image_dims_to_coords_size(dim: Dim) -> usize {
    match dim {
        Dim::D1 => 1,
        Dim::D2 => 2,
        _ => 3,
    }
}
/// Helper functions used to convert from a image dimension into a integer representing the
/// number of components needed for the coordinates vector (1 means scalar instead of vector)
Helper functions used to convert from a image dimension into a integer representing the
number of components needed for the coordinates vector (1 means scalar instead of vector)
Helper functions used to convert from a image dimension into a integer representing the number of components needed for the coordinates vector ( 1 means scalar instead of vector )
const fn image_dims_to_coords_size(dim: Dim) -> usize {
    match dim {
        Dim::D1 => 1,
        Dim::D2 => 2,
        _ => 3,
    }
}
const fn image_dims_to_coords_size ( dim : Dim ) -> usize { match dim { Dim :: D1 => 1 , Dim :: D2 => 2 , _ => 3 , } }
Helper functions used to convert from a image dimension into a integer representing the
number of components needed for the coordinates vector (1 means scalar instead of vector)
Helper functions used to convert from a image dimension into a integer representing the number of components needed for the coordinates vector ( 1 means scalar instead of vector )
dim
Dim
dim
Dim