public class DepthSegment extends Object implements Comparable<DepthSegment>
| Constructor and Description |
|---|
DepthSegment(LineSegment seg,
int depth) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DepthSegment other)
Defines a comparision operation on DepthSegments
which orders them left to right
|
int |
getLeftDepth() |
public DepthSegment(LineSegment seg, int depth)
public int compareTo(DepthSegment other)
DS1 < DS2 if DS1.seg is left of DS2.seg DS1 > DS2 if DS1.seg is right of DS2.seg
compareTo in interface Comparable<DepthSegment>obj - public int getLeftDepth()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.