meta data for this page
  •  

Differences

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:27]
JSCAD Project
en:design_guide_translate [2020/12/08 06:52] (current)
JSCAD Project
Line 9: Line 9:
  
 <code javascript> <code javascript>
-let myshape = sphere([radius: 5}) +const myshape = sphere([radius: 5}) 
-let newshape = translate([3, 7, 10], myshape)+const newshape = translate([3, 7, -10], myshape)
 </code> </code>
  
Line 16: Line 16:
  
 <code javascript> <code javascript>
-let myshape = sphere([radius: 5})+const myshape = sphere([radius: 5})
 let newshape = translateX(3, myshape) let newshape = translateX(3, myshape)
 newshape = translateY(7, newshape) newshape = translateY(7, newshape)
-newshape = translateZ(10, newshape)+newshape = translateZ(-10, newshape)
 </code> </code>