mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-08 11:58:27 +00:00
Simplify
This commit is contained in:
parent
cc8e122a39
commit
b868e7d953
@ -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(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user