basically all it does is uses law of sines. by far the most simple method of solving a triangle (imo). i could've used law of cosines but thats far more difficult and not really worth it (i prefer law of cosines for angles, law of sines for sides.)
fun to make notes: -shift click flag to run instantly -sometimes triangles may look distorted or not connect. this is not an error with the code, its that sprites cannot go offscreen in scratch. (there is probably a workaround to this, but i don't need it so i won't do it. if you know how, you're more than welcome to remix and fix it for yourself.)