We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07c5e30 commit 003c38aCopy full SHA for 003c38a
1 file changed
node-graph/nodes/vector/src/aperiodic_tiling.rs
@@ -45,8 +45,7 @@ fn match_two(p1: DVec2, q1: DVec2, p2: DVec2, q2: DVec2) -> DAffine2 {
45
fn intersect(p1: DVec2, q1: DVec2, p2: DVec2, q2: DVec2) -> DVec2 {
46
let d = (q2.y - p2.y) * (q1.x - p1.x) - (q2.x - p2.x) * (q1.y - p1.y);
47
if d.abs() < 1e-12 {
48
- debug_assert!(false, "parallel lines in intersect");
49
- return p1;
+ panic!("parallel lines in intersect");
50
}
51
let ua = ((q2.x - p2.x) * (p1.y - p2.y) - (q2.y - p2.y) * (p1.x - p2.x)) / d;
52
p1 + ua * (q1 - p1)
0 commit comments