Sha256: b9a3b921e0a7cc13928ac891e60c5a4f79eea3f7957292b948f26e4b23cf275a

Contents?: true

Size: 531 Bytes

Versions: 10

Compression:

Stored size: 531 Bytes

Contents

require_relative './element_factory'

module GridGenerator
  module DinoCube 
    class LeftElementFactory < ElementFactory
      def anchors
        @anchors ||= {
          top_left_corner: Matrix.column_vector([0, 0]),
          top_right_corner: Matrix.column_vector([units, 0.5*units]),
          bottom_left_corner: Matrix.column_vector([0, units]),
          bottom_right_corner: Matrix.column_vector([units, 1.5*units]),
          center: Matrix.column_vector([0.5*units, 0.75*units])
        }
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
grid_generator-0.6.7 lib/grid_generator/dino_cube/left_element_factory.rb
grid_generator-0.6.6 lib/grid_generator/dino_cube/left_element_factory.rb
grid_generator-0.6.5 lib/grid_generator/dino_cube/left_element_factory.rb
grid_generator-0.6.4 lib/grid_generator/dino_cube/left_element_factory.rb
grid_generator-0.6.3 lib/grid_generator/dino_cube/left_element_factory.rb
grid_generator-0.6.2 lib/grid_generator/dino_cube/left_element_factory.rb
grid_generator-0.6.1 lib/grid_generator/dino_cube/left_element_factory.rb
grid_generator-0.6.0 lib/grid_generator/dino_cube/left_element_factory.rb
grid_generator-0.5.3 lib/grid_generator/dino_cube/left_element_factory.rb
grid_generator-0.5.2 lib/grid_generator/dino_cube/left_element_factory.rb