| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | knotcount
Number of knots |
| pack-priv float[] | knotlist
Knots |
| private static final int | MAXORDER
Maximum curve order |
| pack-priv int | order
Curve order |
| pack-priv int | stride
Number of control points' coordinates |
| public static final float | TOLERANCE
Tolerance used when comparing knots - when difference is smaller, knots are considered equal |
| Access | Constructor and Description |
|---|---|
| public | Knotvector(final int
number of knots nknots, final int number of ctrl points' corrdinates stride, final int curve order order, final float[] knots knot)Makes new knotvector |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: knots are/are not equalfirst knot a, final float second knot b)Compares two knots for equality |
| public void | init(final int
number of knots nknots, final int number of ctrl points' corrdinates stride, final int curve order order, final float[] knots knot)Initializes knotvector |
| public void | |
| public int |
| knotcount | back to summary |
|---|---|
| pack-priv int knotcount Number of knots | |
| knotlist | back to summary |
|---|---|
| pack-priv float[] knotlist Knots | |
| MAXORDER | back to summary |
|---|---|
| private static final int MAXORDER Maximum curve order | |
| order | back to summary |
|---|---|
| pack-priv int order Curve order | |
| stride | back to summary |
|---|---|
| pack-priv int stride Number of control points' coordinates | |
| TOLERANCE | back to summary |
|---|---|
| public static final float TOLERANCE Tolerance used when comparing knots - when difference is smaller, knots are considered equal | |
| Knotvector | back to summary |
|---|---|
| public Knotvector(final int nknots, final int stride, final int order, final float[] knot) Makes new knotvector
| |
| identical | back to summary |
|---|---|
| public static boolean identical(final float a, final float b) Compares two knots for equality
| |
| init | back to summary |
|---|---|
| public void init(final int nknots, final int stride, final int order, final float[] knot) Initializes knotvector
| |
| show | back to summary |
|---|---|
| public void show(final String msg) Show specified message
| |
| validate | back to summary |
|---|---|
| public int validate() Validates knot vector parameters
| |