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

Function parseAngle

MyGUIEngine/src/msdfgen/main.cpp:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99static bool parseAngle(double &value, const char *arg) {
100 char *end = NULL;
101 value = strtod(arg, &end);
102 if (end > arg) {
103 arg = end;
104 if (*arg == 'd' || *arg == 'D') {
105 ++arg;
106 value *= M_PI/180;
107 }
108 return !*arg;
109 }
110 return false;
111}
112
113static void parseColoring(Shape &shape, const char *edgeAssignment) {
114 unsigned c = 0, e = 0;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected