I made a miter using \tan(\text{atan2}(y,x)/2)
tan(atan(y,x)/2)
And another one using 1/\sin(\text{atan2}(x,y)/2)
I made a miter using \tan(\text{atan2}(y,x)/2)
And another one using 1/\sin(\text{atan2}(x,y)/2)
Very nice project :-)
nice!
reminds me of a similar thing i did, albeit on desmos, not too long ago:
Elegant.
It started me thinking whether there’s a way to let turtle geometry do the trig for you with nested sprites attached to an invisible sprite that’s a line segment connecting the three pivot points… Dunno whether that would be easier or harder.
You could do this for more visibility:
\tan\dfrac{\operatorname{rectan}(y, x)}{2}
$ \tan\dfrac{\operatorname{rectan}(y, x)}{2}$
\dfrac{1}{\sin\dfrac{\operatorname{rectan}(x,y)}{2}}
$\dfrac{1}{\sin\dfrac{\operatorname{rectan}(x,y)}{2}}$
I get that your version is neater, but I like mine in one line and compact, and it’s still perfectly legible.