Module: NSWTopo::Spot::Candidate
- Defined in:
- lib/nswtopo/layer/spot.rb
Defined Under Namespace
Modules: PreferKnolls, PreferNeither, PreferSaddles
Instance Method Summary
collapse
Instance Method Details
#<=>(other) ⇒ Object
58
59
60
|
# File 'lib/nswtopo/layer/spot.rb', line 58
def <=>(other)
self.ordinal <=> other.ordinal
end
|
#bounds(buffer = 0) ⇒ Object
62
63
64
|
# File 'lib/nswtopo/layer/spot.rb', line 62
def bounds(buffer = 0)
coordinates.map { |coordinate| [coordinate - buffer, coordinate + buffer] }
end
|
#conflicts ⇒ Object
54
55
56
|
# File 'lib/nswtopo/layer/spot.rb', line 54
def conflicts
@conflicts ||= Set[]
end
|