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