Sha256: 82e284a379677717a801fdf37573743c36cb06b634230d3bced239828cfe67b0

Contents?: true

Size: 720 Bytes

Versions: 16

Compression:

Stored size: 720 Bytes

Contents

require_relative './element_factory'

module GridGenerator
  module Skewb
    class RightElementFactory < ElementFactory
      def anchors
        @anchors ||= {
          top_left_corner: Matrix.column_vector([0, 2*units]),
          top_right_corner: Matrix.column_vector([4*units, 0]),
          bottom_left_corner: Matrix.column_vector([0, 6*units]),
          bottom_right_corner: Matrix.column_vector([4*units, 4*units]),

          top_middle: Matrix.column_vector([2*units, units]),
          left_middle: Matrix.column_vector([0, 4*units]),
          right_middle: Matrix.column_vector([4*units, 2*units]),
          bottom_middle: Matrix.column_vector([2*units, 5*units])
        }
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
grid_generator-0.6.7 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.6.6 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.6.5 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.6.4 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.6.3 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.6.2 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.6.1 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.6.0 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.5.3 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.5.2 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.5.1 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.5.0 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.4.5 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.4.4 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.4.3 lib/grid_generator/skewb/right_element_factory.rb
grid_generator-0.4.2 lib/grid_generator/skewb/right_element_factory.rb