MCPcopy Create free account
hub / github.com/RenderKit/embree / string_to_Vec4f

Function string_to_Vec4f

common/sys/estring.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 Vec4f string_to_Vec4f ( std::string str )
34 {
35 size_t next = 0;
36 const float x = std::stof(str,&next); str = str.substr(next+1);
37 const float y = std::stof(str,&next); str = str.substr(next+1);
38 const float z = std::stof(str,&next); str = str.substr(next+1);
39 const float w = std::stof(str,&next);
40 return Vec4f(x,y,z,w);
41 }
42}

Callers 1

loadQuaternionMethod · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected