Class: MiniScad::Rotate

Inherits:
Object
  • Object
show all
Includes:
Transform
Defined in:
lib/mini_scad.rb

Instance Method Summary collapse

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