mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-10 08:44:20 +02:00
refactor
This commit is contained in:
@@ -10,8 +10,8 @@ function _remove_same_pts(pts1, pts2) =
|
|||||||
function _rz_matrix(a) =
|
function _rz_matrix(a) =
|
||||||
let(c = cos(a), s = sin(a))
|
let(c = cos(a), s = sin(a))
|
||||||
[
|
[
|
||||||
[ c, s],
|
[c, -s],
|
||||||
[-s, c],
|
[s, c],
|
||||||
];
|
];
|
||||||
|
|
||||||
function _from_ls_or_eql_to(from, to, point_distance, rt_dir) =
|
function _from_ls_or_eql_to(from, to, point_distance, rt_dir) =
|
||||||
@@ -35,7 +35,7 @@ function _from_ls_or_eql_to(from, to, point_distance, rt_dir) =
|
|||||||
[
|
[
|
||||||
for(pt_a = _golden_spiral(from + 1, to, point_distance, rt_dir))
|
for(pt_a = _golden_spiral(from + 1, to, point_distance, rt_dir))
|
||||||
[
|
[
|
||||||
pt_a[0] * m + off_p,
|
m * pt_a[0] + off_p,
|
||||||
pt_a[1] + za
|
pt_a[1] + za
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user