Package globus.glroute
Class GLRoutePoint
java.lang.Object
globus.glroute.GLRoutePoint
- All Implemented Interfaces:
Serializable
RoutePoint stores information about route point- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceRoute point types to describe the behavior of navigation waypoints. -
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleHeading at point or NaN;doubleLatitude of point.doubleLongitude of point.intOriginal index of point.intType of point -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorGLRoutePoint(double lat, double lon, double heading, int type) Constructor with latitude and longitudeGLRoutePoint(MapGeoPoint geoPoint, double heading, int type) Constructor with geo pointGLRoutePoint(GLRoutePoint other) Copy constructor -
Method Summary
-
Field Details
-
lat
public double latLatitude of point. Valid values are in range [-90, +90] -
lon
public double lonLongitude of point. Valid values are in range [-180, +180] -
heading
public double headingHeading at point or NaN; -
type
public int typeType of point -
originalIndex
public int originalIndexOriginal index of point. Useful after route optimization
-
-
Constructor Details
-
GLRoutePoint
public GLRoutePoint()Default constructor -
GLRoutePoint
Constructor with geo point- Parameters:
geoPoint- geo pointheading- headingtype- type of point
-
GLRoutePoint
public GLRoutePoint(double lat, double lon, double heading, int type) Constructor with latitude and longitude- Parameters:
lat- latitudelon- longitudeheading- headingtype- type of point
-
GLRoutePoint
Copy constructor- Parameters:
other- point to copy
-
-
Method Details