org.kabeja.math
Class NURBS
java.lang.Object
org.kabeja.math.NURBS
public class NURBS
- extends java.lang.Object
Constructor Summary |
NURBS(Point[] controlPoints,
double[] knots,
double[] weights,
int degree)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
controlPoints
protected Point[] controlPoints
knots
protected double[] knots
weights
protected double[] weights
degree
protected int degree
closed
protected boolean closed
NURBS
public NURBS(Point[] controlPoints,
double[] knots,
double[] weights,
int degree)
getBasicFunctions
public double[] getBasicFunctions(int i,
double u)
getPointAt
public Point getPointAt(int i,
double u)
getPointAt
public Point getPointAt(double u)
findSpawnIndex
public int findSpawnIndex(double u)
getControlPoints
public Point[] getControlPoints()
setControlPoints
public void setControlPoints(Point[] controlPoints)
getKnots
public double[] getKnots()
setKnots
public void setKnots(double[] knots)
getWeights
public double[] getWeights()
setWeights
public void setWeights(double[] weights)
getDegree
public int getDegree()
setDegree
public void setDegree(int degree)
isClosed
public boolean isClosed()
setClosed
public void setClosed(boolean closed)