public class HeadingResolver extends Object
| Constructor and Description |
|---|
HeadingResolver(Graph graph) |
| Modifier and Type | Method and Description |
|---|---|
com.carrotsearch.hppc.IntArrayList |
getEdgesWithDifferentHeading(int baseNode,
double heading)
Returns a list of edge IDs of edges adjacent to the given base node that do *not* have the same or a similar
heading as the given heading.
|
HeadingResolver |
setTolerance(double tolerance)
Sets the tolerance for
getEdgesWithDifferentHeading(int, double) in degrees. |
public HeadingResolver(Graph graph)
public com.carrotsearch.hppc.IntArrayList getEdgesWithDifferentHeading(int baseNode,
double heading)
heading - north based azimuth, between 0 and 360 degreessetTolerance(double)public HeadingResolver setTolerance(double tolerance)
getEdgesWithDifferentHeading(int, double) in degrees.Copyright © 2012–2021. All rights reserved.