mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 01:48:28 +00:00
Make method more flexible
This commit is contained in:
parent
3a9128db70
commit
bca6367a35
@ -55,7 +55,7 @@ impl SweptCurve {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn translate(self, offset: impl Into<Vector<3>>) -> Self {
|
||||
pub fn translate(&self, offset: impl Into<Vector<3>>) -> Self {
|
||||
Self {
|
||||
curve: self.curve.transform(&Transform::translation(offset)),
|
||||
path: self.path,
|
||||
|
Loading…
Reference in New Issue
Block a user