Sha256: 89077a5383fe2a369e048646bfa3f4c8bce935f9315c52704566e588868a8bf1

Contents?: true

Size: 747 Bytes

Versions: 2

Compression:

Stored size: 747 Bytes

Contents

require_relative './element_factory'

module GridGenerator
  module RexCube 
    class RightElementFactory < ElementFactory
      def anchors
        @anchors ||= {
          top_left_corner: Matrix.column_vector([0, 1.5*units]),
          top_right_corner: Matrix.column_vector([3*units, 0]),
          bottom_left_corner: Matrix.column_vector([0, 4.5*units]),
          bottom_right_corner: Matrix.column_vector([3*units, 3*units]),

          center_top: Matrix.column_vector([1.5*units, 2.25*units]),
          center_right: Matrix.column_vector([2*units, 2*units]),
          center_bottom: Matrix.column_vector([1.5*units, 3.25*units]),
          center_left: Matrix.column_vector([1*units, 2.5*units])
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grid_generator-0.6.2 lib/grid_generator/rex_cube/right_element_factory.rb
grid_generator-0.6.1 lib/grid_generator/rex_cube/right_element_factory.rb