MCPcopy Create free account
hub / github.com/MyGUI/mygui / readBool

Function readBool

MyGUIEngine/src/msdfgen/ext/import-svg.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86static 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
98static double arcAngle(Vector2 u, Vector2 v) {
99 return nonZeroSign(crossProduct(u, v))*acos(clamp(dotProduct(u, v)/(u.length()*v.length()), -1., +1.));

Callers 1

buildShapeFromSvgPathFunction · 0.85

Calls 1

skipExtraCharsFunction · 0.85

Tested by

no test coverage detected