|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.omGraphics.NatCubicSpline
A natural cubic spline calculation.
Constructor Summary | |
NatCubicSpline()
|
Method Summary | |
float[] |
calc(float[] llpoints,
float precision)
Calculates a float lat/lon cubic spline |
int[][] |
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 int[][] calc(int[] xpoints, int[] ypoints)
xpoints
- ypoints
-
public float[] calc(float[] llpoints, float 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 |