-static string CreateIndexedPropertyName(string Property, int index)
-{
- std::stringstream str;
- str << index;
- string tmp;
- str >> tmp;
- return Property + "[" + tmp + "]";
-}
-
-static inline double sign(double x) {
- return x == 0 ? 0 : x > 0 ? 1.0 : -1.0;
-}
-