• Advertisement
Sign in to follow this  

WT* ?

This topic is 1562 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i was coding something while i stopped 1 hours on some simple math problem...

at first i thought i was doing something wrong but after a while i realized this

	float x = eng->mWidth;
	float y = eng->mHeight;

returned 0 in x... i had to resolve this way

	float xx = eng->mWidth;
	float yy = eng->mHeight;
	float x = (800 / xx);
	float y = (200 / yy);

and everything worked...

can someone explain to me while i cannot include a member of another class in an equation?? did i do something wrong??? please help me understand...

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement