| 84 | } |
| 85 | |
| 86 | static bool readBool(bool &output, const char *&pathDef) { |
| 87 | skipExtraChars(pathDef); |
| 88 | char *end = NULL; |
| 89 | long v = strtol(pathDef, &end, 10); |
| 90 | if (end > pathDef) { |
| 91 | pathDef = end; |
| 92 | output = v != 0; |
| 93 | return true; |
| 94 | } |
| 95 | return false; |
| 96 | } |
| 97 | |
| 98 | static double arcAngle(Vector2 u, Vector2 v) { |
| 99 | return nonZeroSign(crossProduct(u, v))*acos(clamp(dotProduct(u, v)/(u.length()*v.length()), -1., +1.)); |
no test coverage detected