meta data for this page


This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:design_guide_translate [2020/12/01 00:15]
JSCAD Project
en:design_guide_translate [2020/12/08 06:52]
JSCAD Project
Line 9: Line 9:
 <code javascript> <code javascript>
-let myshape = sphere([radius: 5}) +const myshape = sphere([radius: 5}) 
-let newshape = translate([00, 10], myshape)+const newshape = translate([37-10], myshape)
 </code> </code>
 +In addition, there are simple versions of the same function for translating about a single axis.
 +<code javascript>
 +const myshape = sphere([radius: 5})
 +let newshape = translateX(3, myshape)
 +newshape = translateY(7, newshape)
 +newshape = translateZ(-10, newshape)