mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-06 08:17:23 +00:00
Fix incorrect variable names
This commit is contained in:
parent
71f62809c5
commit
fee466e3e5
@ -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();
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user