User Tools


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
design_guide_scale [2018/04/14 03:27]
z3dev
design_guide_scale [2018/06/12 14:21] (current)
z3dev
Line 2: Line 2:
  
 Shapes can be scaled by any factor. Shapes are enlarged (increases) or shrunk (diminishes) by a scale factor. The result of scaling is a similar shape (in the geometric sense) to the original. Shapes can be scaled by any factor. Shapes are enlarged (increases) or shrunk (diminishes) by a scale factor. The result of scaling is a similar shape (in the geometric sense) to the original.
 +
 +//​[[https://​en.wikipedia.org/​wiki/​Scaling_(geometry)|Learn about the scaling shapes at Wikipedia.org]]//​
 +
 +Defaults:
 +  * factor : 1.0 or [1.0,​1.0,​1.0]
  
 <code javascript>​ <code javascript>​
-var obj = sphere(5) +let obj = sphere(5) 
-scale(2,​obj) +obj = scale(2,​obj) 
-scale([1,​2,​3],​obj)+obj = scale([1,​2,​3],​obj)
 </​code>​ </​code>​