Make method more flexible

This commit is contained in:
Hanno Braun 2025-04-08 11:21:04 +02:00
parent 3a9128db70
commit bca6367a35

View File

@ -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,