public interface TurnCostEncoder
Modifier and Type | Interface and Description |
---|---|
static class |
TurnCostEncoder.NoTurnCostsEncoder
No turn costs will be enabled by this encoder, should be used for e.g.
|
Modifier and Type | Method and Description |
---|---|
double |
getTurnCost(long flags) |
long |
getTurnFlags(boolean restricted,
double costs) |
boolean |
isTurnRestricted(long flags) |
boolean isTurnRestricted(long flags)
double getTurnCost(long flags)
long getTurnFlags(boolean restricted, double costs)
restricted
- true if restricted turn, equivalent to specifying costs = Double.POSITIVE_INFINITYcosts
- the turn costs, specify 0 or Double.POSITIVE_INFINITY if restricted == true.
Only used if restricted == false.Copyright © 2012–2019. All rights reserved.