Skip to content

Instantly share code, notes, and snippets.

Created June 1, 2015 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/721fe205aa2a18f7a20b to your computer and use it in GitHub Desktop.
Save anonymous/721fe205aa2a18f7a20b to your computer and use it in GitHub Desktop.
\newcommand{\EdgeOrthTo}[2] {
\draw let
\p1=($(#1.north)-(#1.north east)$),
\n1={atan2(\y1,\x1)},
\p2=($(#2.north)-(#2.north east)$),
\n2={atan2(\y2,\x2)}
in
($(#1.north west)!.3!(#1.north east)$) edge [in=\n2+90,out=\n1-90,red]
($(#2.south west)!.3!(#2.south east)$);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment