Fixed some undef warnings in distributors.

This commit is contained in:
Garth Minette
2020-12-09 23:43:08 -08:00
parent bce5dd5699
commit 70a6b7fac8
4 changed files with 141 additions and 4 deletions

View File

@@ -171,7 +171,11 @@ module line_of(spacing, n, l, p1, p2)
module xcopies(spacing, n, l, sp)
{
sp = is_finite(sp)? [sp,0,0] : sp;
line_of(l=l*RIGHT, spacing=spacing*RIGHT, n=n, p1=sp) children();
line_of(
l=u_mul(l,RIGHT),
spacing=u_mul(spacing,RIGHT),
n=n, p1=sp
) children();
}
@@ -207,7 +211,11 @@ module xcopies(spacing, n, l, sp)
module ycopies(spacing, n, l, sp)
{
sp = is_finite(sp)? [0,sp,0] : sp;
line_of(l=l*BACK, spacing=spacing*BACK, n=n, p1=sp) children();
line_of(
l=u_mul(l,BACK),
spacing=u_mul(spacing,BACK),
n=n, p1=sp
) children();
}
@@ -243,7 +251,11 @@ module ycopies(spacing, n, l, sp)
module zcopies(spacing, n, l, sp)
{
sp = is_finite(sp)? [0,0,sp] : sp;
line_of(l=l*UP, spacing=spacing*UP, n=n, p1=sp) children();
line_of(
l=u_mul(l,UP),
spacing=u_mul(spacing,UP),
n=n, p1=sp
) children();
}