Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by NeoDumont
Today at 04:24
New Aum and few things
by George
Yesterday at 20:47
Transfer free license to different device?
by AndrewAMD
Yesterday at 20:14
read MT4 tradehistory html to create tradereport in Zorro
Yesterday at 13:45
Oanda - Darwinex data syncronisation
by MatPed
06/16/18 17:13
Genetic Algorithm
by AndrewAMD
06/16/18 06:09
by Firoball
06/15/18 21:55
AUM Magazine
Latest Screens
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
Who's Online
7 registered (mk_1, jenGs, Superku, alibaba, AndrewAMD, 20BN, 1 invisible), 475 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Raisinbran, Grodt, drack, Paul_der_Zweite, madeinquant
17981 Registered Users
Topic Options
Rate This Topic
#468827 - 10/22/17 15:15 Algorithm behind vec_rotate
PadMalcom Offline
Serious User

Registered: 03/08/06
Posts: 1989
Loc: Karlsruhe
Hi, I've been searching for a way to rotate a vector as vec_rotate does it. Now I'm too curious to see the algorithm behind it. Can you explain it briefly?

#468831 - 10/22/17 16:03 Re: Algorithm behind vec_rotate [Re: PadMalcom]
Aku_Aku Offline

Registered: 09/25/09
Posts: 917
Loc: Budapest
Maybe it helps: rotating...

#468836 - 10/23/17 10:58 Re: Algorithm behind vec_rotate [Re: Aku_Aku]
Kartoffel Offline

Registered: 06/11/09
Posts: 2210
Loc: Bavaria, Germany
I guess it's three consecutive "2d" rotations (pan rotates xy, tilt xz, and roll yz). I'm not sure in which order they are performed, though.
POTATO-MAN saves the day! - Random

#468838 - 10/23/17 11:33 Re: Algorithm behind vec_rotate [Re: Kartoffel]
Superku Online
Senior Expert

Registered: 09/13/03
Posts: 6707
Loc: Kiel (Germany)
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Superku The Game

Severely outdated footage:

#468842 - 10/23/17 13:23 Re: Algorithm behind vec_rotate [Re: Superku]
jcl Offline

Chief Engineer

Registered: 07/22/00
Posts: 26363
Loc: Frankfurt
Yes, that's the algorithm. The angle is converted to a rotation matrix, with which the vector is then multiplied.

#469272 - 11/10/17 07:11 Re: Algorithm behind vec_rotate [Re: jcl]
PadMalcom Offline
Serious User

Registered: 03/08/06
Posts: 1989
Loc: Karlsruhe
Thank you all!


Moderator:  elsewood, old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at)