Using this for a thing. The math is based off of https://scratch.mit.edu/projects/57947866/ by @WO997 I changed some stuff around, so it's simple-er. It doesn't always work, but it will for what I'm using it for.