Created
June 1, 2015 15:31
-
-
Save anonymous/721fe205aa2a18f7a20b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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