public class NatCubicSpline
extends java.lang.Object
Constructor and Description |
---|
NatCubicSpline() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 * 100public int getSteps()
public void setSteps(int steps)
steps
- The steps to setCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details