| Package | Description |
|---|---|
| jme3tools.navigation |
| Modifier and Type | Method and Description |
|---|---|
static Position |
NavCalculator.computePosition(Position initialPos,
double heading,
double distance)
Computes the coordinate of position B relative to an offset given
a distance and an angle.
|
Position |
MapModel3D.getCentre()
Returns the
Position centre of the map. |
Position |
MapModel2D.getCentre()
Returns the
Position centre of the map |
static Position |
NavCalculator.predictPosition(int time,
double speed,
double currentLat,
double currentLong,
double course)
Predicts the position of a target for a given time in the future
|
Position |
MapModel2D.toPosition(java.awt.Point p)
Converts a pixel position into a mercator position
|
Position |
MapModel3D.toPosition(com.jme3.math.Vector3f posVec)
Converts a world position into a Mercator position.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
NavCalculator.computeAngle(Position p1,
Position p2)
Computes the angle between two points.
|
static int |
NavCalculator.computeBearing(Position p1,
Position p2)
Computes the bearing between two points.
|
static int |
NavCalculator.computeHeading(Position p1,
Position p2) |
static Position |
NavCalculator.computePosition(Position initialPos,
double heading,
double distance)
Computes the coordinate of position B relative to an offset given
a distance and an angle.
|
static double |
NavCalculator.convertCourse(float tc,
Position p1,
Position p2)
Converts a course from cardinal XddY to ddd notation
|
GCSailing |
NavCalculator.greatCircleSailing(Position p1,
Position p2)
Determines a great circle track between two positions
|
RLSailing |
NavCalculator.mercatorSailing(Position p1,
Position p2)
Determines the rhumb line course and distance between two positions
|
RLSailing |
NavCalculator.planeSailing(Position p1,
Position p2)
Calculate a plane sailing situation - i.e.
|
RLSailing |
NavCalculator.rhumbLineSailing(Position p1,
Position p2)
Determines a Rhumb Line course and distance between two points
|
void |
MapModel3D.setCentre(Position centre)
Sets the map's centre.
|
void |
MapModel2D.setCentre(Position centre) |
java.awt.Point |
MapModel2D.toPixel(Position position)
Converts a latitude/longitude position into a pixel co-ordinate
|
com.jme3.math.Vector3f |
MapModel3D.toWorldUnit(Position position)
Converts a latitude/longitude position into a WU coordinate.
|
| Constructor and Description |
|---|
NavCalculator(Position P1,
Position P2,
int calcType)
Constructor
|