public class PlanningLocation extends Object
| Constructor and Description |
|---|
PlanningLocation(long id,
double latitude,
double longitude,
DistanceMap travelDistanceMap) |
| Modifier and Type | Method and Description |
|---|---|
double |
angleTo(PlanningLocation location)
Angle between the given location and the direction EAST with
this location being the vertex. |
long |
distanceTo(PlanningLocation location)
Distance to the given location.
|
long |
getId()
ID of the corresponding domain location.
|
String |
toString() |
PlanningLocation(long id,
double latitude,
double longitude,
DistanceMap travelDistanceMap)
public long getId()
public long distanceTo(PlanningLocation location)
location - other locationpublic double angleTo(PlanningLocation location)
this location being the vertex.location - location that forms one side of the angle (not null)Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.