Sha256: 4cc78cb0aaf7aea17067fae717a3b5941f7997c0d76633bb8b9ae1c94db75d7c
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 KB
Contents
require_relative './element_factory' module GridGenerator module RediCube class RightElementFactory < ElementFactory def anchors @anchors ||= { top_left_corner_top_left: Matrix.column_vector([0, 1.5*units]), top_left_corner_top_right: Matrix.column_vector([units, units]), top_left_corner_bottom_left: Matrix.column_vector([units, 2.5*units ]), top_left_corner_bottom_right: Matrix.column_vector([0, 2*units]), top_right_corner_top_left: Matrix.column_vector([2*units, 0.5*units]), top_right_corner_top_right: Matrix.column_vector([3*units, 0]), top_right_corner_bottom_left: Matrix.column_vector([2*units, 1.5*units]), top_right_corner_bottom_right: Matrix.column_vector([3*units, units]), bottom_left_corner_top_left: Matrix.column_vector([0, 3.5*units]), bottom_left_corner_top_right: Matrix.column_vector([units, 3*units]), bottom_left_corner_bottom_left: Matrix.column_vector([0, 4.5*units]), bottom_left_corner_bottom_right: Matrix.column_vector([units, 4*units]), bottom_right_corner_top_left: Matrix.column_vector([2*units, 2.5*units]), bottom_right_corner_top_right: Matrix.column_vector([3*units, 2*units]), bottom_right_corner_bottom_left: Matrix.column_vector([2*units, 3.5*units]), bottom_right_corner_bottom_right: Matrix.column_vector([3*units, 3*units]), center: Matrix.column_vector([1.5*units, 2.25*units]) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grid_generator-0.6.6 | lib/grid_generator/redi_cube/right_element_factory.rb |
grid_generator-0.6.5 | lib/grid_generator/redi_cube/right_element_factory.rb |