LinearSegment
public class LinearSegment_MPARTC_PwAffine extends java.lang.Object implements LinearSegment
Modifier and Type | Field | Description |
---|---|---|
private ch.ethz.rtc.kernel.Segment |
rtc_segment |
Constructor | Description |
---|---|
LinearSegment_MPARTC_PwAffine(double x,
double y,
double s) |
|
LinearSegment_MPARTC_PwAffine(ch.ethz.rtc.kernel.Segment segment) |
|
LinearSegment_MPARTC_PwAffine(LinearSegment segment) |
|
LinearSegment_MPARTC_PwAffine(java.lang.String segment_str) |
Modifier and Type | Method | Description |
---|---|---|
LinearSegment |
copy() |
|
boolean |
equals(java.lang.Object obj) |
|
Num |
f(Num x) |
|
Num |
getGrad() |
|
Num |
getX() |
|
Num |
getXIntersectionWith(LinearSegment other) |
|
Num |
getY() |
|
int |
hashCode() |
|
boolean |
isLeftopen() |
MPA RTC implementation does not allow for user defined continuity.
|
void |
setGrad(Num grad) |
|
void |
setLeftopen(boolean leftopen) |
MPA RTC implementation does not allow for user defined continuity.
|
protected void |
setRtc_segment(ch.ethz.rtc.kernel.Segment rtc_segment) |
|
void |
setX(double x) |
|
void |
setX(Num x) |
|
void |
setY(double y) |
|
void |
setY(Num y) |
|
java.lang.String |
toString() |
add, createHorizontalLine, createLinearSegment, max, min, sub
public LinearSegment_MPARTC_PwAffine(double x, double y, double s)
public LinearSegment_MPARTC_PwAffine(LinearSegment segment)
public LinearSegment_MPARTC_PwAffine(ch.ethz.rtc.kernel.Segment segment)
public LinearSegment_MPARTC_PwAffine(java.lang.String segment_str)
protected void setRtc_segment(ch.ethz.rtc.kernel.Segment rtc_segment)
public Num f(Num x)
f
in interface LinearSegment
public Num getX()
getX
in interface LinearSegment
public void setX(Num x)
setX
in interface LinearSegment
public void setX(double x)
public Num getY()
getY
in interface LinearSegment
public void setY(Num y)
setY
in interface LinearSegment
public void setY(double y)
public Num getGrad()
getGrad
in interface LinearSegment
public void setGrad(Num grad)
setGrad
in interface LinearSegment
public boolean isLeftopen()
isLeftopen
in interface LinearSegment
public void setLeftopen(boolean leftopen)
setLeftopen
in interface LinearSegment
public Num getXIntersectionWith(LinearSegment other)
getXIntersectionWith
in interface LinearSegment
public LinearSegment copy()
copy
in interface LinearSegment
public boolean equals(java.lang.Object obj)
equals
in interface LinearSegment
equals
in class java.lang.Object
public java.lang.String toString()
toString
in interface LinearSegment
toString
in class java.lang.Object
public int hashCode()
hashCode
in interface LinearSegment
hashCode
in class java.lang.Object