Gamestudio Links
Zorro Links
Newest Posts
rMomentum always returns 0 when checking for peak/valley
by jcl
Today at 17:38
a little help here?
by 3run
Today at 16:38
How to set a pair trading order right
by jcl
Today at 11:46
Dual Momentum Algorithm - The way Zorro would have done it
by Hredot
Today at 05:21
HIgh FRequency Trading Script -- Highly Profitable
by Yosh
Yesterday at 19:27
Linear Regression in objective function
by jcl
11/22/17 15:40
MT4 vs Zorro
by pascalx
11/22/17 14:00
AUM Magazine
Latest Screens
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Triton Wing
Who's Online
14 registered (Lobo, Hredot, painkiller, 3run, alibaba, Kartoffel, FLD, RealSerious3D, Jerome8911, 1 invisible), 169 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
ech87, Lobo, Andy60, AzzoCorp, franzz
17813 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 Online

Registered: 06/11/09
Posts: 2112
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: 6612
Loc: Kiel (Germany)
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Superku side-scroller: ~98.5% (??????!??)

Steam® Store Page ("Coming Soon"): Wowowowow!

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

Chief Engineer

Registered: 07/22/00
Posts: 25939
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 | resources | magazine | manual | support faq | bugs

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