java.lang.Object
phoebe.util.Cubic
- public class Cubic
- extends java.lang.Object
This class represents a cubic polynomial data structure. The function is: a
+ bu + cu^2 +du^3.
|
Field Summary |
(package private) float |
a
|
(package private) float |
b
|
(package private) float |
c
|
(package private) float |
d
|
|
Constructor Summary |
Cubic(float a,
float b,
float c,
float d)
|
|
Method Summary |
float |
eval(float u)
Evaluates cubic. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
a
float a
b
float b
c
float c
d
float d
Cubic
public Cubic(float a,
float b,
float c,
float d)
eval
public float eval(float u)
- Evaluates cubic.