I made a miter joint using tan and sin

I made a miter using \tan(\text{atan2}(y,x)/2)

tan(atan(y,x)/2)

Snap! Build Your Own Blocks

And another one using 1/\sin(\text{atan2}(x,y)/2)

1/sin(atan(x,y)/2)

Snap! Build Your Own Blocks

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.

Off-topic

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}}$
off topic

I get that your version is neater, but I like mine in one line and compact, and it’s still perfectly legible.