updateIMStatic static method
Updates an IM from the label for an edge. Handles edges from both L and A geometries.
Implementation
static void updateIMStatic(Label label, IntersectionMatrix im) {
im.setAtLeastIfValid(label.getLocationWithPosIndex(0, Position.ON),
label.getLocationWithPosIndex(1, Position.ON), 1);
if (label.isArea()) {
im.setAtLeastIfValid(label.getLocationWithPosIndex(0, Position.LEFT),
label.getLocationWithPosIndex(1, Position.LEFT), 2);
im.setAtLeastIfValid(label.getLocationWithPosIndex(0, Position.RIGHT),
label.getLocationWithPosIndex(1, Position.RIGHT), 2);
}
}