Class: Sevgi::Geometry::Grid::Axis::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/sevgi/geometry/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.



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

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

Instance Method Details

#pairsObject



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

def pairs                   = @pairs    ||= segments.map(&:pairs!)

#pointsObject



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

def points                  = @points   ||= segments.map(&:points!)

#segmentsObject



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

def segments                = @segments ||= segments!