mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 01:48:28 +00:00
Update name of trait method parameter
This commit is contained in:
parent
b5eb647032
commit
c018345d63
@ -83,7 +83,7 @@ pub type FloatingCurve = Box<dyn CurveGeometry>;
|
||||
pub trait CurveGeometry {
|
||||
fn clone_curve_geometry(&self) -> FloatingCurve;
|
||||
fn vector_from_local_point(&self, point: Point<1>) -> Vector<3>;
|
||||
fn project_point(&self, point: Vector<3>) -> Point<1>;
|
||||
fn project_point(&self, vector: Vector<3>) -> Point<1>;
|
||||
fn translate(&self, offset: Vector<3>) -> FloatingCurve;
|
||||
|
||||
/// # Approximate the curve
|
||||
@ -109,10 +109,10 @@ impl CurveGeometry for (Point<3>, Circle) {
|
||||
circle.vector_from_local_point(point)
|
||||
}
|
||||
|
||||
fn project_point(&self, point: Vector<3>) -> Point<1> {
|
||||
fn project_point(&self, vector: Vector<3>) -> Point<1> {
|
||||
let (_, circle) = *self;
|
||||
|
||||
circle.project_vector(point)
|
||||
circle.project_vector(vector)
|
||||
}
|
||||
|
||||
fn translate(&self, offset: Vector<3>) -> FloatingCurve {
|
||||
@ -147,10 +147,10 @@ impl CurveGeometry for (Point<3>, Line) {
|
||||
line.vector_from_local_point(point)
|
||||
}
|
||||
|
||||
fn project_point(&self, point: Vector<3>) -> Point<1> {
|
||||
fn project_point(&self, vector: Vector<3>) -> Point<1> {
|
||||
let (_, line) = *self;
|
||||
|
||||
line.project_vector(point)
|
||||
line.project_vector(vector)
|
||||
}
|
||||
|
||||
fn translate(&self, offset: Vector<3>) -> FloatingCurve {
|
||||
|
Loading…
Reference in New Issue
Block a user