I think that only works if you know the angle. What I'm trying to do is drive the angle using the width. Your equation is pretty much what I gave to ChatGPT W = X*cos(A) + Y*sin(A) But it says you can't solve that for A.