This commit is contained in:
Hanno Braun 2025-04-28 13:56:28 +02:00
parent cc8e122a39
commit b868e7d953

View File

@ -1,5 +1,5 @@
use fj_interop::{CircleApproxParams, Tolerance}; use fj_interop::{CircleApproxParams, Tolerance};
use fj_math::{Point, Transform, Vector}; use fj_math::{Point, Vector};
use super::{Circle, Line}; use super::{Circle, Line};
@ -52,8 +52,7 @@ impl AnchoredCurve {
pub fn translate(&self, offset: impl Into<Vector<3>>) -> Self { pub fn translate(&self, offset: impl Into<Vector<3>>) -> Self {
Self { Self {
origin: Transform::translation(offset) origin: self.origin + offset,
.transform_point(&self.origin),
floating: self.floating.clone_curve_geometry(), floating: self.floating.clone_curve_geometry(),
} }
} }