mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
Added examples to move() for issue #609
This commit is contained in:
parent
2e38644894
commit
b20b61a527
@ -25,7 +25,7 @@
|
|||||||
// mat = move([x=], [y=], [z=]);
|
// mat = move([x=], [y=], [z=]);
|
||||||
//
|
//
|
||||||
// Topics: Affine, Matrices, Transforms, Translation
|
// 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:
|
// Description:
|
||||||
// Translates position by the given amount.
|
// Translates position by the given amount.
|
||||||
@ -58,6 +58,14 @@
|
|||||||
// #sphere(d=10);
|
// #sphere(d=10);
|
||||||
// move(x=-10, y=-5) 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):
|
// Example(2D):
|
||||||
// path = square([50,30], center=true);
|
// path = square([50,30], center=true);
|
||||||
// #stroke(path, closed=true);
|
// #stroke(path, closed=true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user