Rename quaternion functions to not have uppercase names.

This commit is contained in:
Garth Minette
2021-06-12 17:17:05 -07:00
parent 621bb4876b
commit 3eb506e78a
4 changed files with 519 additions and 537 deletions

View File

@@ -307,15 +307,15 @@ module stroke(
multmatrix(mat) polygon(endcap_shape2);
}
} else {
quatsums = Q_Cumulative([
quatsums = q_cumulative([
for (i = idx(path2,e=-2)) let(
vec1 = i==0? UP : unit(path2[i]-path2[i-1], UP),
vec2 = unit(path2[i+1]-path2[i], UP),
axis = vector_axis(vec1,vec2),
ang = vector_angle(vec1,vec2)
) Quat(axis,ang)
) quat(axis,ang)
]);
rotmats = [for (q=quatsums) Q_Matrix4(q)];
rotmats = [for (q=quatsums) q_matrix4(q)];
sides = [
for (i = idx(path2,e=-2))
quantup(segs(max(widths[i],widths[i+1])/2),4)