Use our own constants instead of M_PI, M_*, etc. (#1733)

These constants are not part of the standard. We instead use our own
constexpr definitions in the filament::math namespace, as part of
the scalar.h include.
This commit is contained in:
Romain Guy
2019-10-02 15:31:38 -07:00
committed by GitHub
parent 7ea7d1d5f2
commit a4a1bf07aa
22 changed files with 218 additions and 193 deletions

View File

@@ -38,7 +38,7 @@ static void BM_trig(benchmark::State& state) noexcept {
std::vector<float> data(1024);
std::vector<typename T::result_type> res(1024);
for (size_t i = 0; i < data.size(); i++) {
data[i] = float((float(i) / data.size()) * M_2_PI - M_PI);
data[i] = float((float(i) / data.size()) * F_2_PI - F_PI);
}
{