MCPcopy Create free account
hub / github.com/SoarGroup/Soar / parse_vec3

Function parse_vec3

Core/SVS/src/scene.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49bool parse_vec3(vector<string>& f, int& start, vec3& v, string& error)
50{
51 for (int i = 0; i < 3; ++start, ++i)
52 {
53 if (start >= static_cast<int>(f.size()) || !parse_double(f[start], v[i]))
54 {
55 error = "expecting a number";
56 return false;
57 }
58 }
59 return true;
60}
61
62bool parse_verts(vector<string>& f, int& start, ptlist& verts, string& error)
63{

Callers 2

parse_vertsFunction · 0.85
parse_modsFunction · 0.85

Calls 2

parse_doubleFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected