1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-06 23:06:43 +02:00

refactor: format

This commit is contained in:
Justin Lin
2022-04-16 17:39:50 +08:00
parent b16da34c86
commit 1628c56f0d

View File

@@ -2,7 +2,8 @@ use <../__comm__/__ra_to_xy.scad>;
use <../__comm__/__to_degree.scad>;
function _superformula_r(angle, m1, m2, n1, n2 = 1, n3 = 1, a = 1, b = 1) =
(abs(cos(m1 * angle / 4) / a) ^ n2 + abs(sin(m2 * angle / 4) / b) ^ n3) ^ (- 1 / n1);
let(a_d4 = angle / 4)
(abs(cos(m1 * a_d4) / a) ^ n2 + abs(sin(m2 * a_d4) / b) ^ n3) ^ (-1 / n1);
function _shape_superformula_impl(phi_step, m1, m2, n1, n2 = 1, n3 = 1, a = 1, b = 1) =
let(tau = PI * 2)