public static class TurnCostEncoder.NoTurnCostsEncoder extends Object implements TurnCostEncoder
TurnCostEncoder.NoTurnCostsEncoder| Constructor and Description |
|---|
NoTurnCostsEncoder() |
| Modifier and Type | Method and Description |
|---|---|
double |
getTurnCost(long flags) |
long |
getTurnFlags(boolean restriction,
double costs) |
boolean |
isTurnRestricted(long flags) |
public boolean isTurnRestricted(long flags)
isTurnRestricted in interface TurnCostEncoderpublic double getTurnCost(long flags)
getTurnCost in interface TurnCostEncoderpublic long getTurnFlags(boolean restriction,
double costs)
getTurnFlags in interface TurnCostEncoderrestriction - true if restricted turn, equivalent to specifying of costs
Double.POSITIVE_INFINITYcosts - the turn costs, specify 0 or Double.POSITIVE_INFINITY if restricted == true.
Only used if restricted == false.Copyright © 2012–2018. All rights reserved.