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 } }