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 


Need some help doing a formula in c++
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sun Jun 17, 2007 1:50 pm    Post subject: Reply with quote

my idea is quite simple

Quote:

Radianconversion = 0.017453292519943294444444444444444;
U = B*Radianconversion;
R = (V*V) * sin(2*U) / g;



ok thats your idea

Code:

Radianconversion = PI/180;
U = B*Radianconversion;
R = (V*V) * sin(2*U) / g;



not a big difference

its smaller, easier to understand if someone else was to read the prog

_________________


Last edited by HomerSexual on Sun Jun 17, 2007 3:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
Losplagos
Expert Cheater
Reputation: 0

Joined: 21 Mar 2006
Posts: 172
Location: Knee deep in a c++ book

PostPosted: Sun Jun 17, 2007 2:10 pm    Post subject: Reply with quote

blankrider wrote:
my idea is quite simple

Quote:

Radianconversion = 0.017453292519943294444444444444444;
U = B*Radianconversion;
R = (V*V) * sin(2*U) / g;



ok thats your idea

Code:

Radianconversion = PI/2;
U = B*Radianconversion;
R = (V*V) * sin(2*U) / g;



not a big difference

its smaller, easier to understand if someone else was to read the prog


Where do you get the pi/2? The conversion factor is pi/180

_________________

Earthbound = 31337
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sun Jun 17, 2007 3:21 pm    Post subject: Reply with quote

oops thats what i meant

lol

-edits-

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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