From 99a0ee4159a00368414e13ba22ebf698408a0930 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Fri, 23 Apr 2021 08:20:13 +0800 Subject: [PATCH] use power operator --- src/experimental/tri_circumcircle.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/experimental/tri_circumcircle.scad b/src/experimental/tri_circumcircle.scad index df1997c8..dae5831f 100644 --- a/src/experimental/tri_circumcircle.scad +++ b/src/experimental/tri_circumcircle.scad @@ -16,6 +16,6 @@ function tri_circumcircle(points) = center = [x, y], v = p0 - center, r = norm(v), - rr = pow(v[0], 2) + pow(v[1], 2) + rr = v[0] ^ 2 + v[1] ^ 2 ) [center, r, rr]; \ No newline at end of file