Class: GridGenerator::RexCube::TopElementFactory
- Inherits:
-
ElementFactory
- Object
- ElementFactory
- GridGenerator::RexCube::TopElementFactory
- Defined in:
- lib/grid_generator/rex_cube/top_element_factory.rb
Instance Attribute Summary
Attributes inherited from ElementFactory
#col_num, #colour, #grid_x, #grid_y, #opacity, #row_num, #units
Instance Method Summary collapse
Methods inherited from ElementFactory
#build, #commands, #d, #initialize, #offset, #style
Constructor Details
This class inherits a constructor from GridGenerator::RexCube::ElementFactory
Instance Method Details
#anchors ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/grid_generator/rex_cube/top_element_factory.rb', line 6 def anchors @anchors ||= { top_left_corner: Matrix.column_vector([3*units, 0*units]), top_right_corner: Matrix.column_vector([6*units, 1.5*units]), bottom_left_corner: Matrix.column_vector([0, 1.5*units]), bottom_right_corner: Matrix.column_vector([3*units, 3*units]), center_top: Matrix.column_vector([3.5*units, 1.25*units]), center_right: Matrix.column_vector([3.5*units, 1.75*units]), center_bottom: Matrix.column_vector([2.5*units, 1.75*units]), center_left: Matrix.column_vector([2.5*units, 1.25*units]) } end |