public class CurveAndSurfaceMath
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
interpolate(float u,
float v,
java.util.List<java.util.List<Vector4f>> controlPoints,
java.util.List<java.lang.Float>[] knots,
int basisUFunctionDegree,
int basisVFunctionDegree,
Vector3f store)
This method interpolates the data for the nurbs surface.
|
static void |
interpolateNurbs(float u,
Spline nurbSpline,
Vector3f store)
This method interpolates the data for the nurbs curve.
|
static void |
prepareNurbsKnots(java.util.List<java.lang.Float> knots,
int basisFunctionDegree)
This method prepares the knots to be used.
|
public static void interpolateNurbs(float u,
Spline nurbSpline,
Vector3f store)
u - the u valuenurbSpline - the nurbs spline definitionstore - the resulting point in 3D spacepublic static void interpolate(float u,
float v,
java.util.List<java.util.List<Vector4f>> controlPoints,
java.util.List<java.lang.Float>[] knots,
int basisUFunctionDegree,
int basisVFunctionDegree,
Vector3f store)
u - the u valuev - the v valuecontrolPoints - the nurbs' control pointsknots - the nurbs' knotsbasisUFunctionDegree - the degree of basis U functionbasisVFunctionDegree - the degree of basis V functionstore - the resulting point in 3D spacepublic static void prepareNurbsKnots(java.util.List<java.lang.Float> knots,
int basisFunctionDegree)
knots - the knots to be prepared to usebasisFunctionDegree - the degree of basis function