|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.math.CurveAndSurfaceMath
public class CurveAndSurfaceMath
This class offers methods to help with curves and surfaces calculations.
Method Summary | |
---|---|
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 tha data for the nurbs surface. |
static void |
interpolateNurbs(float u,
Spline nurbSpline,
Vector3f store)
This method interpolates tha 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |