draw_tangle#
Functions
add corners to the zig-zag line, so it starts and ends in a rectangle (the bounding box) |
|
|
return angle between three complex points, 0 if parallel |
|
|
|
Make a connection line with vertical, horizontal or diagonal lines between points z (left) and w (right) pos can be "N" or "S" |
|
return the number of crossings |
|
Convert the tangle expr, convert it to a zig-zag line and plot it. |
|
|
|
Integral tangle, return a sum of 1's or -1's |
|
Convert a algebraic tangle into a geometric zig-zag line |
Classes
|
General expression for a tangle, either Sum or Product of tangles stored in an array |
|
Formal product of tangles |
|
Formal sum of tangles |
|
Class to draw a zig-zag line. |