1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 09:44:16 +02:00
This commit is contained in:
Justin Lin
2022-07-29 08:58:27 +08:00
parent 86d5da1e23
commit 390bef0061

View File

@@ -5,7 +5,7 @@ function great_circle_arc(p1, p2) =
let(
radius = norm(p1),
normal_vt = cross(p2, p1),
a = acos(p2 * p1 / pow(radius, 2)),
a = asin(norm(normal_vt) / (p1 * p1)),
steps = round(a / (360 / __frags(radius)))
)
steps == 0 ? [p1, p2] :