1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-31 18:22:08 +02:00

refactor/format

This commit is contained in:
Justin Lin
2022-04-04 18:58:32 +08:00
parent 556fd1ed28
commit c3425143c3
12 changed files with 73 additions and 99 deletions

View File

@@ -30,9 +30,9 @@ module spiral_math_constants(n, radius, constants, font_name, font_size, txt_ext
module constant_on_spiral(constant, spiral) {
for(i = [0:len(spiral) - 1]) {
x = spiral[i][0];
y = spiral[i][1];
z = spiral[i][2];
x = spiral[i].x;
y = spiral[i].y;
z = spiral[i].z;
ya = atan2(z, sqrt(x * x + y * y));
za = atan2(y, x);