mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-29 07:19:57 +02:00
Remove apply_list(). Renamed affine_frame_map() to affine3d_frame_map()
This commit is contained in:
@@ -257,18 +257,6 @@ module test_apply() {
|
||||
test_apply();
|
||||
|
||||
|
||||
module test_apply_list() {
|
||||
assert(approx(apply_list(25*(BACK+UP), []), 25*(BACK+UP)));
|
||||
assert(approx(apply_list(25*(BACK+UP), [affine3d_xrot(135)]), 25*sqrt(2)*FWD));
|
||||
assert(approx(apply_list(25*(RIGHT+UP), [affine3d_yrot(135)]), 25*sqrt(2)*DOWN));
|
||||
assert(approx(apply_list(25*(BACK+RIGHT), [affine3d_zrot(45)]), 25*sqrt(2)*BACK));
|
||||
assert(approx(apply_list(25*(BACK+UP), [affine3d_xrot(135), affine3d_translate([30,40,50])]), 25*sqrt(2)*FWD+[30,40,50]));
|
||||
assert(approx(apply_list(25*(RIGHT+UP), [affine3d_yrot(135), affine3d_translate([30,40,50])]), 25*sqrt(2)*DOWN+[30,40,50]));
|
||||
assert(approx(apply_list(25*(BACK+RIGHT), [affine3d_zrot(45), affine3d_translate([30,40,50])]), 25*sqrt(2)*BACK+[30,40,50]));
|
||||
}
|
||||
test_apply_list();
|
||||
|
||||
|
||||
module test_rot_decode() {
|
||||
Tlist = [
|
||||
rot(37),
|
||||
|
Reference in New Issue
Block a user