i_shape 2.0.0

iShape is a compact and efficient library specifically designed for representing 2D data structures using IntPoint.
Documentation
use crate::int::shape::{IntShape, IntShapes};

pub trait IntContourReverse {
    fn reverse_contours(&mut self);
}

impl IntContourReverse for IntShape {
    #[inline]
    fn reverse_contours(&mut self) {
        for path in self {
            path.reverse()
        }
    }
}

impl IntContourReverse for IntShapes {
    #[inline]
    fn reverse_contours(&mut self) {
        for shape in self {
            for path in shape {
                path.reverse()
            }
        }
    }
}