|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opengl.impl.glu.nurbs.Knotvector
public class Knotvector
Knot vector used in curve specification
Field Summary | |
---|---|
static float |
TOLERANCE
Tolerance used when comparing knots - when difference is smaller, knots are considered equal |
Constructor Summary | |
---|---|
Knotvector(int nknots,
int stride,
int order,
float[] knot)
Makes new knotvector |
Method Summary | |
---|---|
static boolean |
identical(float a,
float b)
Compares two knots for equality |
void |
init(int nknots,
int stride,
int order,
float[] knot)
Initializes knotvector |
void |
show(String msg)
Show specified message |
int |
validate()
Validates knot vector parameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float TOLERANCE
Constructor Detail |
---|
public Knotvector(int nknots, int stride, int order, float[] knot)
nknots
- number of knotsstride
- number of ctrl points' corrdinatesorder
- curve orderknot
- knotsMethod Detail |
---|
public void init(int nknots, int stride, int order, float[] knot)
nknots
- number of knotsstride
- number of ctrl points' corrdinatesorder
- curve orderknot
- knotspublic int validate()
public void show(String msg)
msg
- message to be shownpublic static boolean identical(float a, float b)
a
- first knotb
- second knot
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |