mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Simplify
This commit is contained in:
parent
cc8e122a39
commit
b868e7d953
@ -1,5 +1,5 @@
|
||||
use fj_interop::{CircleApproxParams, Tolerance};
|
||||
use fj_math::{Point, Transform, Vector};
|
||||
use fj_math::{Point, Vector};
|
||||
|
||||
use super::{Circle, Line};
|
||||
|
||||
@ -52,8 +52,7 @@ impl AnchoredCurve {
|
||||
|
||||
pub fn translate(&self, offset: impl Into<Vector<3>>) -> Self {
|
||||
Self {
|
||||
origin: Transform::translation(offset)
|
||||
.transform_point(&self.origin),
|
||||
origin: self.origin + offset,
|
||||
floating: self.floating.clone_curve_geometry(),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user