Package soot.jimple.spark.geom.dataRep
Class SegmentNode
- java.lang.Object
-
- soot.jimple.spark.geom.dataRep.SegmentNode
-
- All Implemented Interfaces:
Comparable<SegmentNode>
- Direct Known Subclasses:
RectangleNode
public class SegmentNode extends Object implements Comparable<SegmentNode>
The segment figure for encoding the one-to-one relation.- Author:
- richardxx
-
-
Constructor Summary
Constructors Constructor Description SegmentNode()SegmentNode(long i1, long i2, long l)SegmentNode(SegmentNode other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SegmentNode o)voidcopySegment(SegmentNode other)booleanequals(SegmentNode other)booleanintersect(SegmentNode q)Testing if two figures are intersected.booleanprojYIntersect(SegmentNode q)longxEnd()longyEnd()
-
-
-
Field Detail
-
I1
public long I1
-
I2
public long I2
-
L
public long L
-
next
public SegmentNode next
-
is_new
public boolean is_new
-
-
Constructor Detail
-
SegmentNode
public SegmentNode()
-
SegmentNode
public SegmentNode(SegmentNode other)
-
SegmentNode
public SegmentNode(long i1, long i2, long l)
-
-
Method Detail
-
copySegment
public void copySegment(SegmentNode other)
-
equals
public boolean equals(SegmentNode other)
-
compareTo
public int compareTo(SegmentNode o)
- Specified by:
compareToin interfaceComparable<SegmentNode>
-
xEnd
public long xEnd()
-
yEnd
public long yEnd()
-
intersect
public boolean intersect(SegmentNode q)
Testing if two figures are intersected. This interface implements standard intersection testing that ignores the semantics of the X- and Y- axis. Processing the semantics issues before calling this method. A sample usage, please @see heap_sensitive_intersection- Parameters:
q-- Returns:
-
projYIntersect
public boolean projYIntersect(SegmentNode q)
-
-