Vlek / vlek.github.io

Personal blog
2 stars 0 forks source link

Update vector rotation article with correct algo #75

Open Vlek opened 1 year ago

Vlek commented 1 year ago

What I did, surprisingly, works, but is not the algorithm that is returned whenever I have searched for how to do it.

The closest thing that I have seen that explains what I did is in this stackexchange answer: https://math.stackexchange.com/a/1385082. It shows that you can get the same answer using the formula that I used, but it is stating that it's for a simpler problem than what is being asked.

Something in the back of my head though is maybe I'm onto something and I found a shortcut? The only problem that I have found is that the way that I am dividing the value within the sin and cos functions is not aligning so that I can feed it in a value between 0-360 to get all of the degrees.

So the article needs to be updated. Either I research and fully formulate the algorithm that I used OR I correct the article to use the math answer that I'm finding (in the above link).