class Tsuga::Service::Aggregator::FencedPair

pairs where both points fall outside the fence are considered “at horizon” i.e. their distance infinite. the point is to never aggregate them.

Public Class Methods

new(c1, c2, fence) click to toggle source
Calls superclass method Tsuga::Service::Aggregator::Pair::new
# File lib/tsuga/service/aggregator.rb, line 147
def initialize(c1, c2, fence)
  super(c1, c2)
  @outside = !fence.contains?(c1) && !fence.contains?(c2)
end

Public Instance Methods

distance() click to toggle source
Calls superclass method
# File lib/tsuga/service/aggregator.rb, line 152
def distance
  @outside ? Float::MAX : super
end