boolean intersects(Point p) {
		// make the point a bit bigger, so the line is easier to hit
		double size = 5;
		double half = size / 2;
		double x = p.x - half;
		double y = p.y - half;

		Rectangle2D pickArea = new Rectangle2D.Double(x, y, size, size);
		if (intersectsAnyPartOfArrow(pickArea)) {
			return true;
		}

		return false;
	}
Call when the screen moves so that the shape can be updated
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/flowarrow/FlowArrow.java