|
GeoSoft API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Object | +--SplineFactory
A spline factory instance.
| Constructor Summary | |
SplineFactory()
|
|
| Method Summary | |
static double[] |
createBezier(double[] controlPoints,
int nParts)
Create a Bezier spline based on the given control points. |
static double[] |
createCatmullRom(double[] controlPoints,
int nParts)
Create a Catmull-Rom spline based on the given control points. |
static double[] |
createCubic(double[] controlPoints,
int nParts)
Create a cubic spline based on the given control points. |
static void |
main(String[] args)
Testing the spline package. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SplineFactory()
| Method Detail |
public static double[] createBezier(double[] controlPoints,
int nParts)
controlPoints - Control points of spline (x0,y0,z0,x1,y1,z1,...).nParts - Number of parts to divide each leg into.
public static double[] createCubic(double[] controlPoints,
int nParts)
controlPoints - Control points of spline (x0,y0,z0,x1,y1,z1,...).nParts - Number of parts to divide each leg into.
public static double[] createCatmullRom(double[] controlPoints,
int nParts)
controlPoints - Control points of spline (x0,y0,z0,x1,y1,z1,...).nParts - Number of parts to divide each leg into.
public static void main(String[] args)
args - Not used.
|
GeoSoft API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||