1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 00:36:40 +02:00

don't return undef

This commit is contained in:
Justin Lin
2020-02-25 15:35:07 +08:00
parent 0eb2e4f974
commit 364345ad7f

View File

@@ -9,7 +9,7 @@ function tri_circumcircle(points) =
d1 = (p2 + p1) / 2 * v1,
det = -cross(v0 , v1)
)
det == 0? undef :
det == 0? [] :
let(
x = (d1 * v0[1] - d0 * v1[1]) / det,
y = (d0 * v1[0] - d1 * v0[0]) / det,