From b20b61a527109aefaf402dbe17843a2bc324529f Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Tue, 20 Jul 2021 17:02:24 -0700 Subject: [PATCH] Added examples to move() for issue #609 --- transforms.scad | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/transforms.scad b/transforms.scad index 5f08cf5..d3bcdfb 100644 --- a/transforms.scad +++ b/transforms.scad @@ -25,7 +25,7 @@ // mat = move([x=], [y=], [z=]); // // Topics: Affine, Matrices, Transforms, Translation -// See Also: left(), right(), fwd(), back(), down(), up(), affine2d_translate(), affine3d_translate() +// See Also: left(), right(), fwd(), back(), down(), up(), spherical_to_xyz(), altaz_to_xyz(), cylindrical_to_xyz(), polar_to_xy(), affine2d_translate(), affine3d_translate() // // Description: // Translates position by the given amount. @@ -58,6 +58,14 @@ // #sphere(d=10); // move(x=-10, y=-5) sphere(d=10); // +// Example(FlatSpin): Using Altitude-Azimuth Coordinates +// #sphere(d=10); +// move(altaz_to_xyz(30,90,20)) sphere(d=10); +// +// Example(FlatSpin): Using Spherical Coordinates +// #sphere(d=10); +// move(spherical_to_xyz(20,45,30)) sphere(d=10); +// // Example(2D): // path = square([50,30], center=true); // #stroke(path, closed=true);