Line2D.Double diagonalePart = vertex.getUpperLeftDiagonaleLine();
Pair<Line2D, Point2D> intersection = line
.getIntersection(diagonalePart);
if (intersection != null)
{
line.splitLine(intersection.getFirst(), GeometryBoostUtils
.translate(vertex.getUpperLeftCorner(),
GeometryBoostUtils.getVector(vertex.getCenter(),
intersection.getSecond())));
}