Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some error #26

Open
Mefistosss opened this issue Jan 26, 2018 · 2 comments
Open

Some error #26

Mefistosss opened this issue Jan 26, 2018 · 2 comments

Comments

@Mefistosss
Copy link

Mefistosss commented Jan 26, 2018

intro.js
var M_PI = Math.PI;
var M_PI_2 = M_PI / 2;
var M_2_PI = 2 * M_PI;
...
var SCREEN_ROTATION_0 = 0,
SCREEN_ROTATION_90 = M_PI_2,
SCREEN_ROTATION_180 = M_PI,
SCREEN_ROTATION_270 = M_2_PI / 3,
SCREEN_ROTATION_MINUS_90 = - M_PI_2;

SCREEN_ROTATION_270 = M_2_PI / 3, // Error -> M_2_PI - M_PI_2

360 / 3 = 120 (not 270)

@pjbaron
Copy link

pjbaron commented Nov 7, 2019

"M_2_PI / 3"
720 / 3 = 240 (not 120 or 270) ;)

@Mefistosss
Copy link
Author

Mefistosss commented Feb 28, 2020

Yes and it is error.
Solution is M_2_PI - M_PI_2

360 / 3 = 120 (not 270) - Sorry, my bad, you are right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants