Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void TrenderedTextSubtitleWord::Transform(CPoint org)
- {
- ....
- double caz = cos((3.1415 / 180) * mprops.angleZ);
- double saz = sin((3.1415 / 180) * mprops.angleZ);
- double cax = cos((3.1415 / 180) * mprops.angleX);
- double sax = sin((3.1415 / 180) * mprops.angleX);
- double cay = cos((3.1415 / 180) * mprops.angleY);
- double say = sin((3.1415 / 180) * mprops.angleY);
- ....
- }
- This suspicious code was found in ffdshow project by PVS-Studio static code analyzer.
- Warning message is:
- V624 The constant 3.1415 is being utilized. The resulting value could be inaccurate. Consider using the M_PI constant from <math.h>. trenderedtextsubtitleword.cpp 290
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment