Sha256: 056aafcd24c14f4603fd8dd5ca6951d4f9121818a6873fbdbb3e2ac611b94e83

Contents?: true

Size: 765 Bytes

Versions: 7

Compression:

Stored size: 765 Bytes

Contents

require_relative './element_factory'

module GridGenerator
  module RexCube 
    class TopElementFactory < ElementFactory
      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
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
grid_generator-0.6.7 lib/grid_generator/rex_cube/top_element_factory.rb
grid_generator-0.6.6 lib/grid_generator/rex_cube/top_element_factory.rb
grid_generator-0.6.5 lib/grid_generator/rex_cube/top_element_factory.rb
grid_generator-0.6.4 lib/grid_generator/rex_cube/top_element_factory.rb
grid_generator-0.6.3 lib/grid_generator/rex_cube/top_element_factory.rb
grid_generator-0.6.2 lib/grid_generator/rex_cube/top_element_factory.rb
grid_generator-0.6.1 lib/grid_generator/rex_cube/top_element_factory.rb