Sha256: 09aafdbf87ddd5d03bd0a840fc060cbbd2fad52d573c0205302e76509efc1664

Contents?: true

Size: 728 Bytes

Versions: 16

Compression:

Stored size: 728 Bytes

Contents

require_relative './element_factory'

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

          top_middle: Matrix.column_vector([6*units, units]),
          left_middle: Matrix.column_vector([2*units, units]),
          right_middle: Matrix.column_vector([6*units, 3*units]),
          bottom_middle: Matrix.column_vector([2*units, 3*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/top_element_factory.rb
grid_generator-0.6.6 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.6.5 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.6.4 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.6.3 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.6.2 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.6.1 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.6.0 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.5.3 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.5.2 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.5.1 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.5.0 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.4.5 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.4.4 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.4.3 lib/grid_generator/skewb/top_element_factory.rb
grid_generator-0.4.2 lib/grid_generator/skewb/top_element_factory.rb