Class: GridGenerator::CurvyCopter::RightElementFactory
- Inherits:
-
ElementFactory
- Object
- ElementFactory
- GridGenerator::CurvyCopter::RightElementFactory
- Defined in:
- lib/grid_generator/curvy_copter/right_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/right_element_factory.rb', line 6 def anchors @anchors ||= { top_left_corner: Matrix.column_vector([0, 1.5*units]), top_right_corner: Matrix.column_vector([3*units, 0*units]), bottom_left_corner: Matrix.column_vector([0, 4.5*units]), bottom_right_corner: Matrix.column_vector([3*units, 3*units]), top_edge_left: Matrix.column_vector([units, units]), top_edge_right: Matrix.column_vector([2*units, 0.5*units]), right_edge_top: Matrix.column_vector([3*units, units]), right_edge_bottom: Matrix.column_vector([3*units, 2*units]), bottom_edge_left: Matrix.column_vector([units, 4*units]), bottom_edge_right: Matrix.column_vector([2*units, 3.5*units]), left_edge_top: Matrix.column_vector([0, 2.5*units]), left_edge_bottom: Matrix.column_vector([0, 3.5*units]), center: Matrix.column_vector([1.5*units, 2.25*units]), top_edge_center: Matrix.column_vector([1.5*units, 1.5*units]), right_edge_center: Matrix.column_vector([2.25*units, 1.875*units ]), bottom_edge_center: Matrix.column_vector([1.5*units, 3*units ]), left_edge_center: Matrix.column_vector([0.75*units, 2.625*units]), top_left_corner_center: Matrix.column_vector([0.75*units, 1.875*units]), top_right_corner_center: Matrix.column_vector([2.25*units, 1.125*units]), bottom_left_corner_center: Matrix.column_vector([0.75*units, 3.375*units ]), bottom_right_corner_center: Matrix.column_vector([2.25*units, 2.625*units]) } end |