|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.omGraphics.NatCubicSpline
public class NatCubicSpline
A natural cubic spline calculation.
Nested Class Summary | |
---|---|
static class |
NatCubicSpline.CLOSED
Moved from an outside class, the closed case of a NatCubicSpline. |
Constructor Summary | |
---|---|
NatCubicSpline()
|
Method Summary | |
---|---|
double[] |
calc(double[] llpoints,
double precision)
Calculates a float lat/lon cubic spline |
static double[] |
calc(double[] llpoints,
double precision,
boolean geometryClosed)
The proper access for these classes, using default steps. |
static double[] |
calc(double[] llpoints,
double precision,
boolean geometryClosed,
int steps)
The proper access for these classes. |
float[][] |
calc(float[] xpoints,
float[] ypoints)
Calculates a cubic spline polyline |
static float[][] |
calc(float[] xpoints,
float[] ypoints,
boolean geometryClosed)
The proper access for these classes, using default steps. |
static float[][] |
calc(float[] xpoints,
float[] ypoints,
boolean geometryClosed,
int steps)
The proper access for these classes. |
float[][] |
calc(int[] xpoints,
int[] ypoints)
Calculates a cubic spline polyline |
static float[][] |
calc(int[] xpoints,
int[] ypoints,
boolean geometryClosed)
The proper access for these classes, using default steps. |
static float[][] |
calc(int[] xpoints,
int[] ypoints,
boolean geometryClosed,
int steps)
The proper access for these classes. |
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. |
NatCubicSpline |
withSteps(int steps)
Set the steps and return this object. |
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 static float[][] calc(int[] xpoints, int[] ypoints, boolean geometryClosed)
xpoints
- projected x pointsypoints
- projected y pointsgeometryClosed
- whether the spline is a closed shape
public static float[][] calc(int[] xpoints, int[] ypoints, boolean geometryClosed, int steps)
xpoints
- projected x pointsypoints
- projected y pointsgeometryClosed
- whether the spline is a closed shapesteps
- the number of segments the spline curve should be broken
into (default 12)
public static float[][] calc(float[] xpoints, float[] ypoints, boolean geometryClosed)
xpoints
- projected x pointsypoints
- projected y pointsgeometryClosed
- whether the spline is a closed shape
public static float[][] calc(float[] xpoints, float[] ypoints, boolean geometryClosed, int steps)
xpoints
- projected x pointsypoints
- projected y pointsgeometryClosed
- whether the spline is a closed shapesteps
- the number of segments the spline curve should be broken
into (default 12)
public static double[] calc(double[] llpoints, double precision, boolean geometryClosed)
llpoints
- precision
- geometryClosed
- whether the spline is a closed shape
public static double[] calc(double[] llpoints, double precision, boolean geometryClosed, int steps)
llpoints
- precision
- geometryClosed
- whether the spline is a closed shapesteps
- the number of segments the spline curve should be broken
into (default 12)
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 setpublic NatCubicSpline withSteps(int steps)
steps
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |