public class SegmentNode extends java.lang.Object implements java.lang.Comparable<SegmentNode>
| Modifier and Type | Field and Description |
|---|---|
long |
I1 |
long |
I2 |
boolean |
is_new |
long |
L |
SegmentNode |
next |
| Constructor and Description |
|---|
SegmentNode() |
SegmentNode(long i1,
long i2,
long l) |
SegmentNode(SegmentNode other) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SegmentNode o) |
void |
copySegment(SegmentNode other) |
boolean |
equals(SegmentNode other) |
boolean |
intersect(SegmentNode q)
Testing if two figures are intersected.
|
boolean |
projYIntersect(SegmentNode q) |
long |
xEnd() |
long |
yEnd() |
public long I1
public long I2
public long L
public SegmentNode next
public boolean is_new
public SegmentNode()
public SegmentNode(SegmentNode other)
public SegmentNode(long i1,
long i2,
long l)
public void copySegment(SegmentNode other)
public boolean equals(SegmentNode other)
public int compareTo(SegmentNode o)
compareTo in interface java.lang.Comparable<SegmentNode>public long xEnd()
public long yEnd()
public boolean intersect(SegmentNode q)
q - public boolean projYIntersect(SegmentNode q)