|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.omGraphics.NatCubicSpline
public class NatCubicSpline
A natural cubic spline calculation.
Constructor Summary | |
---|---|
NatCubicSpline()
|
Method Summary | |
---|---|
double[] |
calc(double[] llpoints,
double precision)
Calculates a float lat/lon cubic spline |
float[][] |
calc(float[] xpoints,
float[] ypoints)
Calculates a cubic spline polyline |
float[][] |
calc(int[] xpoints,
int[] ypoints)
Calculates a cubic spline polyline |
int |
getSteps()
Returns the steps. |
void |
setSteps(int steps)
Sets the number of points (steps) interpolated on the curve between the original points to draw it as a polyline. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NatCubicSpline()
Method Detail |
---|
public float[][] calc(int[] xpoints, int[] ypoints)
xpoints
- ypoints
-
public float[][] calc(float[] xpoints, float[] ypoints)
xpoints
- in float precision.ypoints
- in float precision.
public double[] calc(double[] llpoints, double precision)
llpoints
- precision
- for dividing floating coordinates to become
int, e.g 0.01 means spline to be calculated with
coordinates * 100
public int getSteps()
public void setSteps(int steps)
steps
- The steps to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |