Fix projection into line

This commit is contained in:
Hanno Braun 2025-04-25 12:12:00 +02:00
parent e8c16a5790
commit 4f8047d92e

View File

@ -132,9 +132,9 @@ impl CurveGeometry for (Point<3>, Line) {
}
fn project_point(&self, point: Point<3>) -> Point<1> {
let (_, line) = *self;
let (origin, line) = *self;
line.project_vector(point.coords)
line.project_vector(point - origin)
}
fn translate(&self, offset: Vector<3>) -> FloatingCurve {