mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-29 11:58:39 +01:00
refactor
This commit is contained in:
parent
4fad71c352
commit
705aa35e3e
@ -26,5 +26,5 @@ function __line_intersection3(line_pts1, line_pts2, epsilon = 0.0001) =
|
||||
)
|
||||
cross(a, s) * (b2 - a1) != 0 || // they aren't coplanar
|
||||
n1p < epsilon ^ 2 ? [] : // they are parallel or conincident edges
|
||||
let(n2 = cross(s, b))
|
||||
a1 + a * (sqrt(n2 * n2 / n1p) * (n1 * n2 >= 0 ? 1 : -1));
|
||||
let(n2 = cross(s, b), v = a * sqrt(n2 * n2 / n1p))
|
||||
n1 * n2 >= 0 ? a1 + v : a1 - v;
|
Loading…
x
Reference in New Issue
Block a user