mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-22 15:15:52 +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
|
||||
#[must_use]
|
||||
pub fn reverse(mut self) -> Self {
|
||||
self.origin += self.direction;
|
||||
self.direction = -self.direction;
|
||||
self
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user