|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjpview.ptms.HPNormals
public class HPNormals
Original code by Hans Wolters Java port by Cliff Lyon
| Field Summary | |
|---|---|
static double |
eps
epsilon value - same as zerotol |
static double |
zerotol
zero tolerance - float close to zero |
| Constructor Summary | |
|---|---|
HPNormals()
|
|
| Method Summary | |
|---|---|
static int |
computeMaximumOnCircle(double[] a,
double[] normal)
Finds the maximum value for a normal on the circle for the given array of coefficients and adjusts normal |
static double |
evalPoly(double[] a,
double t)
Evaluate a polynomial for a given set of coefficients |
static Vec3f[] |
getNormals(LRGBPTM ptm)
Returns "fixed" normals for corner cases in the PTM |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double zerotol
public static final double eps
| Constructor Detail |
|---|
public HPNormals()
| Method Detail |
|---|
public static double evalPoly(double[] a,
double t)
a - the coefficient arrayt - one of the roots of the polynomial
public static int computeMaximumOnCircle(double[] a,
double[] normal)
a - array of coefficientsnormal - normal for the point
public static Vec3f[] getNormals(LRGBPTM ptm)
ptm - the source ptm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||