AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Trash (https://forums.alliedmods.net/forumdisplay.php?f=22)
-   -   Rotate point around vector? 3D (https://forums.alliedmods.net/showthread.php?t=250547)

Alka 10-26-2014 08:29

Rotate point around vector? 3D
 
1 Attachment(s)
I have 2 points origins(P1 and P2) and a third point(P3) that is at distance N from P2. Now what i want to make is to rotate P3 around P2 at X angles. Made a lot of researches and searches but didn't understand so much because of my lack of maths ;s if anyone around knows an answer then thank you. :bacon:

Some useful info? http://ami.ektf.hu/uploads/papers/fi...om175to186.pdf

Seems like i need rotation matrix / Rodrigues fomula, but i can't find any c/c++ translated functions and practical example to make this work.

Here i have some code that i've found but it doesn't appear to work as intended...

Spoiler


EDIT: A more simple version? http://www.engr.uvic.ca/~mech410/lec...RotateArbi.pdf


All times are GMT -4. The time now is 05:13.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.