mpl.patches.YAArrow.getpoints

YAArrow.getpoints(x1, y1, x2, y2, k)[source]

For line segment defined by (x1, y1) and (x2, y2) return the points on the line that is perpendicular to the line and intersects (x2, y2) and the distance from (x2, y2) of the returned points is k.