mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-26 09:05:52 +00:00
Add PolyChain::reverse
This commit is contained in:
parent
e01e14d4da
commit
17b8b91f63
@ -51,6 +51,12 @@ impl<const D: usize> PolyChain<D> {
|
|||||||
|
|
||||||
self
|
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> {
|
impl<const D: usize> Default for PolyChain<D> {
|
||||||
|
Loading…
Reference in New Issue
Block a user