|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmonotonic.StraightEnvelope
Defines a straight line as an envelope. Implements Envelope and
Serializable interface. Line is in the format of
f = offset + angle * x
Field Summary | |
private double |
angle
|
private double |
offset
|
Constructor Summary | |
StraightEnvelope(double offset,
double angle)
StraightEnvelope constructor. |
Method Summary | |
double |
f(double x)
Returns the f(x) for the given x. |
double |
getAngle()
|
double |
getOffset()
|
void |
setAngle(double d)
Sets the angle |
void |
setOffset(double d)
Sets the offset |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private double offset
private double angle
Constructor Detail |
public StraightEnvelope(double offset, double angle)
f = offset + angle * x
offset
- angle
- in radiansMethod Detail |
public final double f(double x)
Envelope
f
in interface Envelope
x
-
public double getAngle()
public double getOffset()
public void setAngle(double d)
d
- angle in radianspublic void setOffset(double d)
d
- public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |