private double lengthSquared(Line2D line) {
		double dx = line.getX1() - line.getX2();
		double dy = line.getY1() - line.getY2();
		return dx * dx + dy * dy;
	}
Basic class to calculate the position of an edge arrow

@param <V> the vertex type
@param <E> the edge type
Ghidra/Framework/Graph/src/main/java/ghidra/graph/viewer/edge/VisualEdgeArrowRenderingSupport.java