Add PolyChain::reverse

This commit is contained in:
Hanno Braun 2022-04-09 15:24:38 +02:00
parent e01e14d4da
commit 17b8b91f63

View File

@ -51,6 +51,12 @@ impl<const D: usize> PolyChain<D> {
self
}
/// Reverse the order of points in the `PolyChain`
pub fn reverse(mut self) -> Self {
self.points.reverse();
self
}
}
impl<const D: usize> Default for PolyChain<D> {