Fix incorrect variable names

This commit is contained in:
Hanno Braun 2022-02-20 12:41:54 +01:00
parent 71f62809c5
commit fee466e3e5
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

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