Class: Tsumetogi::DpMatcher::Distance
- Inherits:
-
Struct
- Object
- Struct
- Tsumetogi::DpMatcher::Distance
- Defined in:
- lib/tsumetogi/dp_matcher.rb
Overview
DP平面における距離と方向を表現する構造体
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
67 68 69 |
# File 'lib/tsumetogi/dp_matcher.rb', line 67 def <=>(other) self.dist <=> other.dist end |