public class LinearSegment
extends java.lang.Object
Constructor and Description |
---|
LinearSegment(double start,
double end,
java.lang.String attributeName,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<LinearSegment> |
aggregate(LinearSegment... segments) |
static java.util.List<LinearSegment> |
aggregate(java.util.List<LinearSegment> segments) |
java.util.Set<java.lang.String> |
attributeNames() |
boolean |
endBefore(LinearSegment linear) |
java.lang.Object |
getAttribute(java.lang.String name) |
double |
getEnd() |
double |
getStart() |
boolean |
intersect(LinearSegment linear) |
static LinearSegment |
intersection(LinearSegment l1,
LinearSegment l2) |
static void |
main(java.lang.String[] args) |
boolean |
startBefore(LinearSegment linear) |
static java.util.List<LinearSegment> |
substraction(LinearSegment l1,
LinearSegment l2) |
java.lang.String |
toString() |
public LinearSegment(double start, double end, java.lang.String attributeName, java.lang.Object value)
public double getStart()
public double getEnd()
public java.lang.Object getAttribute(java.lang.String name)
public java.util.Set<java.lang.String> attributeNames()
public boolean startBefore(LinearSegment linear)
public boolean endBefore(LinearSegment linear)
public boolean intersect(LinearSegment linear)
public static LinearSegment intersection(LinearSegment l1, LinearSegment l2)
public static java.util.List<LinearSegment> substraction(LinearSegment l1, LinearSegment l2)
public static java.util.List<LinearSegment> aggregate(LinearSegment... segments)
public static java.util.List<LinearSegment> aggregate(java.util.List<LinearSegment> segments)
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)