Class: GridGenerator::CurvyCopter::TopElementFactory
- Inherits:
-
ElementFactory
- Object
- ElementFactory
- GridGenerator::CurvyCopter::TopElementFactory
- Defined in:
- lib/grid_generator/curvy_copter/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::CurvyCopter::ElementFactory
Instance Method Details
#anchors ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/grid_generator/curvy_copter/top_element_factory.rb', line 6 def anchors @anchors ||= { top_left_corner: Matrix.column_vector([3*units, 0]), 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]), top_edge_left: Matrix.column_vector([4*units, 0.5*units]), top_edge_right: Matrix.column_vector([5*units, units]), right_edge_top: Matrix.column_vector([5*units, 2*units]), right_edge_bottom: Matrix.column_vector([4*units, 2.5*units]), bottom_edge_left: Matrix.column_vector([units, 2*units]), bottom_edge_right: Matrix.column_vector([2*units, 2.5*units]), left_edge_top: Matrix.column_vector([2*units, 0.5*units]), left_edge_bottom: Matrix.column_vector([units, units]), center: Matrix.column_vector([3*units, 1.5*units]), top_edge_center: Matrix.column_vector([3.75*units, 1.125*units]), right_edge_center: Matrix.column_vector([3.75*units, 1.875*units]), bottom_edge_center: Matrix.column_vector([2.25*units, 1.875*units]), left_edge_center: Matrix.column_vector([2.25*units, 1.125*units]), top_left_corner_center: Matrix.column_vector([3*units, 0.75*units]), top_right_corner_center: Matrix.column_vector([4.5*units, 1.5*units]), bottom_left_corner_center: Matrix.column_vector([1.5*units, 1.5*units]), bottom_right_corner_center: Matrix.column_vector([3*units, 2.25*units]) } end |