public class PlanningLocation extends AbstractPlanningObject
id| Constructor and Description |
|---|
PlanningLocation(long id,
double latitude,
double longitude,
DistanceMap travelDistanceMap) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAngle(PlanningLocation location)
The angle relative to the direction EAST.
|
long |
getDistanceTo(PlanningLocation location)
Get distance to the given location.
|
String |
toString() |
getId, setIdPlanningLocation(long id,
double latitude,
double longitude,
DistanceMap travelDistanceMap)
public long getDistanceTo(PlanningLocation location)
location - other locationpublic double getAngle(PlanningLocation location)
location - never nullCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.