mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 10:28:27 +00:00
Fix projection into line
This commit is contained in:
parent
e8c16a5790
commit
4f8047d92e
@ -132,9 +132,9 @@ impl CurveGeometry for (Point<3>, Line) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn project_point(&self, point: Point<3>) -> Point<1> {
|
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 {
|
fn translate(&self, offset: Vector<3>) -> FloatingCurve {
|
||||||
|
Loading…
Reference in New Issue
Block a user