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

Method parm_float

tutorials/common/scenegraph/xml_parser.h:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44
45 float parm_float(const std::string& parmID) const {
46 std::map<std::string,std::string>::const_iterator i = parms.find(parmID);
47 if (i == parms.end()) THROW_RUNTIME_ERROR (loc.str()+": XML node has no parameter \"" + parmID + "\"");
48 return std::stof(i->second);
49 }
50
51 /*! returns the nth child */
52 const Ref<XML> child(const size_t id) const

Callers 2

loadPerspectiveCameraMethod · 0.80
loadFurBallMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected