mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-29 03:40:17 +02:00
Renamed normalize() to unit()
This commit is contained in:
@@ -142,7 +142,7 @@ function circle(r, d, realign=false, circum=false, anchor=CENTER, spin=0) =
|
||||
offset = realign? 180/sides : 0,
|
||||
rr = r / (circum? cos(180/sides) : 1),
|
||||
pts = [for (i=[0:1:sides-1]) let(a=360-offset-i*360/sides) rr*[cos(a),sin(a)]]
|
||||
) rot(spin, p=move(-normalize(anchor)*rr, p=pts));
|
||||
) rot(spin, p=move(-unit(anchor)*rr, p=pts));
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user