public class NURBS
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected Point[] |
controlPoints |
protected int |
degree |
protected double[] |
knots |
protected double[] |
weights |
| Constructor and Description |
|---|
NURBS(Point[] controlPoints,
double[] knots,
double[] weights,
int degree) |
| Modifier and Type | Method and Description |
|---|---|
int |
findSpawnIndex(double u) |
double[] |
getBasicFunctions(int i,
double u) |
Point[] |
getControlPoints() |
int |
getDegree() |
double[] |
getKnots() |
Point |
getPointAt(double u) |
Point |
getPointAt(int i,
double u) |
double[] |
getWeights() |
boolean |
isClosed() |
void |
setClosed(boolean closed) |
void |
setControlPoints(Point[] controlPoints) |
void |
setDegree(int degree) |
void |
setKnots(double[] knots) |
void |
setWeights(double[] weights) |
protected Point[] controlPoints
protected double[] knots
protected double[] weights
protected int degree
protected boolean closed
public NURBS(Point[] controlPoints, double[] knots, double[] weights, int degree)
public double[] getBasicFunctions(int i,
double u)
public Point getPointAt(int i, double u)
public Point getPointAt(double u)
public int findSpawnIndex(double u)
public Point[] getControlPoints()
public void setControlPoints(Point[] controlPoints)
public double[] getKnots()
public void setKnots(double[] knots)
public double[] getWeights()
public void setWeights(double[] weights)
public int getDegree()
public void setDegree(int degree)
public boolean isClosed()
public void setClosed(boolean closed)