catacycle.drawing_helpers

Functions

cart2pol(x, y)

concatenate_paths(paths[, connect])

curved_arrow_double(theta1, theta2, radius, ...)

Construct the paths a double-sided reversible curved arrow.

curved_arrow_single(theta1, theta2, radius, ...)

Construct the path for an irreversible curved arrow

ensure_all_valid_gaps(delta, gaps[, precision])

ensure_valid_gap(delta, gap[, precision])

ensure_valid_gaps(delta, gap1, gap0[, precision])

filled_circular_arc(theta1, theta2, radius, ...)

Construct the path for a circular arc

get_intersect_segment_circle(p1, p2, r[, p_cent])

https://codereview.stackexchange.com/questions/86421/line-segment-to-circle-collision-algorithm

get_isosceles_arrowhead(radius, theta1, ...)

get_isosceles_arrowhead_old(radius, theta1, ...)

get_perp_arrowhead(radius, theta_tip, ...)

join_points(points)

path_arc_cw(theta1, theta2)

used if theta1 >= theta2

path_arc_smart(theta1, theta2)

scale_arc(arc_path, scale)

set_ax_lims(ax, paths)

shift_path_by_vec(path, vec)

straight_arrow_double(length, width_top, ...)

Construct the path for an irreversible straight arrow

straight_arrow_single(length, width[, ...])

Construct the path for an irreversible straight arrow