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