From 00027857e14cb2f3106602ff62cf5b5ffbe8cb97 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 26 Aug 2024 20:16:59 +0200 Subject: [PATCH] Consolidate redundant code --- crates/fj-core/src/geometry/path.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/fj-core/src/geometry/path.rs b/crates/fj-core/src/geometry/path.rs index fd0f6ac60..26c450435 100644 --- a/crates/fj-core/src/geometry/path.rs +++ b/crates/fj-core/src/geometry/path.rs @@ -4,6 +4,8 @@ use fj_math::{Circle, Line, Point, Scalar, Transform, Vector}; +use super::CurveGeom2; + /// A path through surface (2D) or global (3D) space #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)] pub enum Path { @@ -107,7 +109,7 @@ impl Path { /// Access the origin of the path's coordinate system pub fn origin(&self) -> Point { match self { - Self::Circle(circle) => circle.center() + circle.a(), + Self::Circle(circle) => circle.origin(), Self::Line(line) => line.origin(), } }