shorten_edge_for_arrow: Calculate Shortened Edge Endpoint
Description
Calculates where to stop drawing an edge line so the arrow head
doesn't overlap with the line.
Usage
shorten_edge_for_arrow(x1, y1, x2, y2, arrow_size)
Value
List with x, y coordinates of shortened endpoint.
Arguments
- x1, y1
Start point.
- x2, y2
End point (arrow tip).
- arrow_size
Arrow size.