From d4faf2973d4bf4bb786184390a8c91c97519390a Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Sun, 20 Feb 2022 13:34:39 +0100 Subject: [PATCH] Remove redundant access to point curve coords --- src/kernel/geometry/surfaces/swept.rs | 2 +- src/math/point.rs | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/kernel/geometry/surfaces/swept.rs b/src/kernel/geometry/surfaces/swept.rs index be2c49fee..ecf5c2bb5 100644 --- a/src/kernel/geometry/surfaces/swept.rs +++ b/src/kernel/geometry/surfaces/swept.rs @@ -24,7 +24,7 @@ impl Swept { /// Convert a point in model coordinates to surface coordinates pub fn point_model_to_surface(&self, point: &Point<3>) -> Point<2> { - let u = self.curve.point_model_to_curve(point).t(); + let u = self.curve.point_model_to_curve(point).t; let v = (point - self.curve.origin()).dot(&self.path.normalize()) / self.path.magnitude(); diff --git a/src/math/point.rs b/src/math/point.rs index 2dafbc30d..c9883c560 100644 --- a/src/math/point.rs +++ b/src/math/point.rs @@ -53,13 +53,6 @@ impl Point { } } -impl Point<1> { - /// Access the curve point's t coordinate - pub fn t(&self) -> Scalar { - self.coords.t - } -} - impl ops::Deref for Point<1> { type Target = T;