require_relative './element_factory' module GridGenerator module RexCube class LeftElementFactory < ElementFactory def anchors @anchors ||= { top_left_corner: Matrix.column_vector([0, 0]), top_right_corner: Matrix.column_vector([3*units, 1.5*units]), bottom_left_corner: Matrix.column_vector([0, 3*units]), bottom_right_corner: Matrix.column_vector([3*units, 4.5*units]), center_top: Matrix.column_vector([1.5*units, 2.25*units]), center_right: Matrix.column_vector([2*units, 2.5*units]), center_bottom: Matrix.column_vector([1.5*units, 3.25*units]), center_left: Matrix.column_vector([1*units, 2*units]) } end end end end