Class: MiniScad::Rotate
Instance Method Summary collapse
-
#initialize(x, y, z, &block) ⇒ Rotate
constructor
A new instance of Rotate.
Methods included from Transform
#&, #+, #-, #color, #hull, #mirror, #projection, #render, #rotate, #scale, #translate, #|
Constructor Details
#initialize(x, y, z, &block) ⇒ Rotate
Returns a new instance of Rotate.
157 158 159 160 161 |
# File 'lib/mini_scad.rb', line 157 def initialize(x, y, z, &block) @renderer = -> do "rotate([#{x}, #{y}, #{z}]) { #{block.().render} };" end end |