Vector2D pointwiseDisplacement = Vector2D.create(nearPt, vertexPt).normalize();
double stretchAng = pointwiseDisplacement.angleTo(bisec);
double stretchAngClamp = MathUtil.clamp(stretchAng, -maxAngToBisec, maxAngToBisec);
Vector2D cornerDisplacement = bisec.rotate(-stretchAngClamp).multiply(dist);
return cornerDisplacement.translate(vertexPt);
}
private boolean isInsideCorner(Coordinate queryPt, Coordinate base, Coordinate p1, Coordinate p2)
{
return CGAlgorithms.orientationIndex(base, p1, queryPt) == CGAlgorithms.CLOCKWISE