mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 01:04:07 +02:00
don't return undef
This commit is contained in:
@@ -9,7 +9,7 @@ function tri_circumcircle(points) =
|
|||||||
d1 = (p2 + p1) / 2 * v1,
|
d1 = (p2 + p1) / 2 * v1,
|
||||||
det = -cross(v0 , v1)
|
det = -cross(v0 , v1)
|
||||||
)
|
)
|
||||||
det == 0? undef :
|
det == 0? [] :
|
||||||
let(
|
let(
|
||||||
x = (d1 * v0[1] - d0 * v1[1]) / det,
|
x = (d1 * v0[1] - d0 * v1[1]) / det,
|
||||||
y = (d0 * v1[0] - d1 * v0[0]) / det,
|
y = (d0 * v1[0] - d1 * v0[0]) / det,
|
||||||
|
Reference in New Issue
Block a user