LinearSegment_DNC, LinearSegment_MPARTC_PwAffinepublic interface LinearSegment
| Modifier and Type | Method | Description |
|---|---|---|
static LinearSegment |
add(LinearSegment s1,
LinearSegment s2,
Num x,
boolean leftopen) |
Helper creating a new segment starting at x that is the sum of the given
getSegment.
|
LinearSegment |
copy() |
|
static LinearSegment |
createHorizontalLine(double y) |
|
static LinearSegment |
createLinearSegment(Num x,
Num y,
Num grad,
boolean leftopen) |
|
boolean |
equals(java.lang.Object obj) |
|
Num |
f(Num x) |
|
Num |
getGrad() |
|
Num |
getX() |
|
Num |
getXIntersectionWith(LinearSegment other) |
|
Num |
getY() |
|
int |
hashCode() |
|
boolean |
isLeftopen() |
|
static LinearSegment |
max(LinearSegment s1,
LinearSegment s2,
Num x,
boolean leftopen,
boolean crossed) |
Helper creating a new segment starting at x that is the maximum of the given
segments.
|
static LinearSegment |
min(LinearSegment s1,
LinearSegment s2,
Num x,
boolean leftopen,
boolean crossed) |
Helper creating a new segment starting at x that is the minimum of the given
getSegment.
|
void |
setGrad(Num grad) |
|
void |
setLeftopen(boolean leftopen) |
|
void |
setX(Num x) |
|
void |
setY(Num y) |
|
static LinearSegment |
sub(LinearSegment s1,
LinearSegment s2,
Num x,
boolean leftopen) |
Helper creating a new segment starting at x that is the difference between
the given getSegment.
|
java.lang.String |
toString() |
static LinearSegment createLinearSegment(Num x, Num y, Num grad, boolean leftopen)
static LinearSegment createHorizontalLine(double y)
static LinearSegment add(LinearSegment s1, LinearSegment s2, Num x, boolean leftopen)
s1 - Segment 1.s2 - Segment 2.x - New x-coordinate the start at.leftopen - Set the segment to be left-open.static LinearSegment sub(LinearSegment s1, LinearSegment s2, Num x, boolean leftopen)
s1 - Segment 1.s2 - Segment 2.x - New x-coordinate the start at.leftopen - Set the segment to be left-open.static LinearSegment min(LinearSegment s1, LinearSegment s2, Num x, boolean leftopen, boolean crossed)
s1 - Segment 1.s2 - Segment 2.x - New x-coordinate the start at.leftopen - Set the segment to be left-open.crossed - Provides information if the segments intersect.static LinearSegment max(LinearSegment s1, LinearSegment s2, Num x, boolean leftopen, boolean crossed)
s1 - Segment 1.s2 - Segment 2.x - New x-coordinate the start at.leftopen - Set the segment to be left-open.crossed - Provides information if the segments intersect.Num getX()
void setX(Num x)
Num getY()
void setY(Num y)
Num getGrad()
void setGrad(Num grad)
boolean isLeftopen()
void setLeftopen(boolean leftopen)
Num getXIntersectionWith(LinearSegment other)
LinearSegment copy()
boolean equals(java.lang.Object obj)
equals in class java.lang.Objectint hashCode()
hashCode in class java.lang.Objectjava.lang.String toString()
toString in class java.lang.Object