Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help] Arccos (inverse cosine) in vb 6

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Wed May 07, 2008 11:39 am    Post subject: [Help] Arccos (inverse cosine) in vb 6 Reply with quote

well remember my angleator? i finished all of version 2 except for one very critical line, where i need to use arccos on one of my integers. apperantly vb 6 has no arccos option, and by googling and from msdn i got this formula:
Atan(-x / Sqrt(-x * x + 1)) + 2 * Atan(1)

however, it does not work. i inserted 0.5 as x (result shouldve been 60) and it gave me 0.9 Confused
and converting the delphi one to vb was 2 complicated for me

some1 know how to do it?
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Wed May 07, 2008 12:30 pm    Post subject: Reply with quote

http://www.a1vbcode.com/snippet-3311.asp

Has a few more advanced math functions in it as well.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Thu May 08, 2008 5:36 am    Post subject: Reply with quote

Wiccaan wrote:
http://www.a1vbcode.com/snippet-3311.asp

Has a few more advanced math functions in it as well.

doesnt work. their formula is:
Atan(-x/Sqrt(-x*x+1))+2*Atan(1)
that formula says that arccos(0.9) is 0.1 =\
while it should be about 6?

:O
wtf
i just realised why all these ways failed for me...
I FORGOT TO CHANGE RADIANS TO DEGREES
oops Embarassed
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites