Sha256: 6673b0e3b66e67036a7247abbceae5507ef855010b5cc7c1aaaab10d2683fea5

Contents?: true

Size: 749 Bytes

Versions: 1

Compression:

Stored size: 749 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.75*units, 2.25*units]),
          center_right: Matrix.column_vector([2*units, 2*units]),
          center_bottom: Matrix.column_vector([2.75*units, 3.25*units]),
          center_left: Matrix.column_vector([1*units, 2.5*units])
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grid_generator-0.6.3 lib/grid_generator/rex_cube/right_element_factory.rb