Sha256: 8adf1d23d3631fa9424a6b2d825edc7545216c24a7ba046990f56daa6f1ff32e

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

require_relative 'multiple_state'

module IntervalNotation
  module SweepLine
    module TraceState

      # Class allows to observe whether sweep line is inside of first and outside of second interval set
      class Subtract < MultipleState
        def self.initial_state
          self.new([false, false])
        end

        def state_convolution
          inclusion_state[0] && !inclusion_state[1]
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
interval_notation-0.2.0 lib/interval_notation/sweep_line/trace_state/subtract.rb