File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1258,6 +1258,16 @@ static constexpr int REPLACE = 0;
12581258#endif
12591259
12601260// Math constants (float precision)
1261+ // Processing Java numeric constants
1262+ static constexpr float MAX_FLOAT = ::std::numeric_limits<float >::max();
1263+ static constexpr float MIN_FLOAT = -::std::numeric_limits<float >::max();
1264+ static constexpr int MAX_INT = ::std::numeric_limits<int >::max();
1265+ static constexpr int MIN_INT = ::std::numeric_limits<int >::min();
1266+ static constexpr float EPSILON = 0 .0001f ;
1267+ // isNaN / isInfinite
1268+ inline bool isNaN (float v) { return ::std::isnan (v); }
1269+ inline bool isInfinite (float v) { return ::std::isinf (v); }
1270+
12611271static constexpr float PI = static_cast <float >(M_PI );
12621272static constexpr float TWO_PI = static_cast <float >(M_PI * 2.0 );
12631273static constexpr float HALF_PI = static_cast <float >(M_PI / 2.0 );
You can’t perform that action at this time.
0 commit comments