mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-22 23:25:51 +00:00
Update Line::reverse
to reverse "in-place"
This commit is contained in:
parent
8fc40594a7
commit
f00be2b290
@ -115,6 +115,7 @@ impl<const D: usize> Line<D> {
|
|||||||
/// Create a new instance that is reversed
|
/// Create a new instance that is reversed
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn reverse(mut self) -> Self {
|
pub fn reverse(mut self) -> Self {
|
||||||
|
self.origin += self.direction;
|
||||||
self.direction = -self.direction;
|
self.direction = -self.direction;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user