From fee466e3e5a5d7398fd6eb4efd9e38f4232361cb Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Sun, 20 Feb 2022 12:41:54 +0100 Subject: [PATCH] Fix incorrect variable names --- src/kernel/geometry/curves/circle.rs | 4 ++-- src/kernel/geometry/curves/line.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kernel/geometry/curves/circle.rs b/src/kernel/geometry/curves/circle.rs index 436bc038b..3fd7cb21f 100644 --- a/src/kernel/geometry/curves/circle.rs +++ b/src/kernel/geometry/curves/circle.rs @@ -63,9 +63,9 @@ impl Circle { } /// Convert a vector on the curve into model coordinates - pub fn vector_curve_to_model(&self, point: &Vector<1>) -> Vector<3> { + pub fn vector_curve_to_model(&self, vector: &Vector<1>) -> Vector<3> { let radius = self.radius.magnitude(); - let angle = point.t; + let angle = vector.t; let (sin, cos) = angle.sin_cos(); diff --git a/src/kernel/geometry/curves/line.rs b/src/kernel/geometry/curves/line.rs index d7af97b32..71c103513 100644 --- a/src/kernel/geometry/curves/line.rs +++ b/src/kernel/geometry/curves/line.rs @@ -52,8 +52,8 @@ impl Line { } /// Convert a vector on the curve into model coordinates - pub fn vector_curve_to_model(&self, point: &Vector<1>) -> Vector<3> { - self.direction * point.t + pub fn vector_curve_to_model(&self, vector: &Vector<1>) -> Vector<3> { + self.direction * vector.t } }