|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjpview.graphics.GraphicsGems
public class GraphicsGems
Adopted from GraphicsGems root finders
| Field Summary | |
|---|---|
static double |
EQN_EPS
epsilon value |
| Constructor Summary | |
|---|---|
GraphicsGems()
Creates a new instance of GraphicsGems |
|
| Method Summary | |
|---|---|
static double |
cbrt(double x)
Returns the cube root |
static boolean |
IsZero(double x)
true if x is zero w/in tolerance |
static int |
SolveCubic(double[] c,
double[] s)
Solve a cubic equation |
static int |
SolveQuadric(double[] c,
double[] s)
Solves a quadric equation |
static int |
SolveQuadric(double[] c,
double[] s,
int n)
Solve a quadric equation |
static int |
SolveQuartic(double[] c,
double[] s)
Solves a quartic equation |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double EQN_EPS
| Constructor Detail |
|---|
public GraphicsGems()
| Method Detail |
|---|
public static boolean IsZero(double x)
x - value to test
public static double cbrt(double x)
x - the input value
public static int SolveQuadric(double[] c,
double[] s)
c - The coefficients for the equations - Storage for the roots of the equation
public static int SolveQuadric(double[] c,
double[] s,
int n)
c - coefficient array for the quadrics - storage for the roots of the equationn - offset into the result array, if non-zero
public static int SolveCubic(double[] c,
double[] s)
c - array of coefficientss - storage for the results
public static int SolveQuartic(double[] c,
double[] s)
c - array containing the coefficients of the equations - storage for results
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||