Skip to content
Commit 1ac7883f authored by Hugo Carneiro's avatar Hugo Carneiro Committed by Chris Rizzitello
Browse files

QtMath now provides M_PI constant, operations with degrees, and c++ provides round()

Summary:
Since QtMath library has a proper M_PI the define is not necessary anymore. Furthermore, C++'s round() function behaves in similar fashion to the ROUND2INT macro (rounding away
from zero). If this style of rounding is not specifically required, I suggest another revision to change it to rint(), which rounds towards even numbers.

Reviewers: tcanabrava, rizzitello

Reviewed By: tcanabrava, rizzitello

Subscribers: kde-edu

Tags: #kde_edu

Differential Revision: https://phabricator.kde.org/D16463
parent cd94d3d1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment