Added [xyz]move(). Removed affine2d planar returns from transform functions.

This commit is contained in:
Garth Minette
2021-12-31 15:22:13 -08:00
parent 7e65a001e1
commit 36fadc4e26
4 changed files with 121 additions and 136 deletions

View File

@@ -289,12 +289,11 @@ module test_rot() {
for (vec1 = vecs2d) {
for (vec2 = vecs2d) {
assert_approx(
rot(from=vec1, to=vec2, p=pts2d, planar=true),
rot(from=vec1, to=vec2, p=pts2d),
apply(affine2d_zrot(v_theta(vec2)-v_theta(vec1)), pts2d),
info=str(
"from = ", vec1, ", ",
"to = ", vec2, ", ",
"planar = ", true, ", ",
"p=..., 2D"
)
);