private static class OrthogonalizeAction.WayData extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
heading |
int |
nNode |
int |
nSeg |
OrthogonalizeAction.Direction[] |
segDirections |
EastNorth |
segSum |
Way |
way |
Modifier and Type | Method and Description |
---|---|
void |
calcDirections(OrthogonalizeAction.Direction pInitialDirection)
Estimate the direction of the segments, given the first segment points in the
direction
pInitialDirection . |
public final int nSeg
public final int nNode
public OrthogonalizeAction.Direction[] segDirections
public double heading
public void calcDirections(OrthogonalizeAction.Direction pInitialDirection) throws OrthogonalizeAction.InvalidUserInputException
pInitialDirection
.
Then sum up all horizontal / vertical segments to have a good guess for the
heading of the entire way.