Gamestudio Links
Zorro Links
Newest Posts
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
How to select between IB accounts by script?
by Jack_Zodiac. 06/12/26 23:17
Zorro tutorial ideas?
by pr0logic. 06/12/26 13:36
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/12/26 08:50
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, TipmyPip, 1 invisible), 2,064 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
vec_to_angle Algorithm #282971
08/05/09 00:03
08/05/09 00:03
Joined: May 2008
Posts: 62
México.
F
FcoElizalde Offline OP
Junior Member
FcoElizalde  Offline OP
Junior Member
F

Joined: May 2008
Posts: 62
México.
Hi.
In the manual in vec_for_angle, theres a place in wich you can see the algorithm for calculation of vertex trough pan and tilt

Do someone knows where I can see the algorithm for vec_to_angle?
This function is clever in a way I cant describe.

Re: vec_to_angle Algorithm [Re: FcoElizalde] #283047
08/05/09 11:59
08/05/09 11:59
Joined: Jul 2000
Posts: 28,101
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,101
Frankfurt

Re: vec_to_angle Algorithm [Re: jcl] #283064
08/05/09 13:57
08/05/09 13:57
Joined: Jun 2008
Posts: 402
Germany
S
sebbi91 Offline
Senior Member
sebbi91  Offline
Senior Member
S

Joined: Jun 2008
Posts: 402
Germany
real math ^^


3D-Gamestudio A8 - Commercial
Re: vec_to_angle Algorithm [Re: sebbi91] #283080
08/05/09 15:30
08/05/09 15:30
Joined: May 2008
Posts: 62
México.
F
FcoElizalde Offline OP
Junior Member
FcoElizalde  Offline OP
Junior Member
F

Joined: May 2008
Posts: 62
México.
Thank a lot for this, but
How did you avoid the crash when VECTOR.y is equal to 0 in the ANGLE.pan?

Re: vec_to_angle Algorithm [Re: FcoElizalde] #283082
08/05/09 15:38
08/05/09 15:38
Joined: Jul 2000
Posts: 28,101
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,101
Frankfurt
With a case differentiation. And also, better use atan2 when you really program this algorithm. Such subtleties don't appear in an algorithm description.

Re: vec_to_angle Algorithm [Re: jcl] #283083
08/05/09 15:53
08/05/09 15:53
Joined: May 2008
Posts: 62
México.
F
FcoElizalde Offline OP
Junior Member
FcoElizalde  Offline OP
Junior Member
F

Joined: May 2008
Posts: 62
México.
Ok thanks a lot, this is exactly what I was looking for


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

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

Powered by UBB.threads™ PHP Forum Software 7.7.1