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

Function string_to_Vec3f

common/sys/estring.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 Vec3f string_to_Vec3f ( std::string str )
25 {
26 size_t next = 0;
27 const float x = std::stof(str,&next); str = str.substr(next+1);
28 const float y = std::stof(str,&next); str = str.substr(next+1);
29 const float z = std::stof(str,&next);
30 return Vec3f(x,y,z);
31 }
32
33 Vec4f string_to_Vec4f ( std::string str )
34 {

Callers 3

parm_Vec3faMethod · 0.85
load<AffineSpace3fa>Method · 0.85
loadQuaternionMethod · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected