Class: Sevgi::Sundries::Grid::Axis::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/sevgi/sundries/grid.rb

Direct Known Subclasses

Halve, Major, Minor

Instance Method Summary collapse

Constructor Details

#initialize(this, other) ⇒ Query

Returns a new instance of Query.



44
# File 'lib/sevgi/sundries/grid.rb', line 44

def initialize(this, other) = (@this, @other = this, other)

Instance Method Details

#linesObject



50
# File 'lib/sevgi/sundries/grid.rb', line 50

def lines = @lines ||= lines!

#pointsObject



48
# File 'lib/sevgi/sundries/grid.rb', line 48

def points = @points ||= lines.map { it.points(true) }

#xysObject



46
# File 'lib/sevgi/sundries/grid.rb', line 46

def xys = @xys ||= lines.map { it.points(true).map(&:deconstruct) }