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

Method getFloat

tutorials/common/scenegraph/xml_loader.cpp:150–154  ·  view source on GitHub ↗

! Extracts a named float out of the container. */

Source from the content-addressed store, hash-verified

148
149 /*! Extracts a named float out of the container. */
150 float getFloat(const char* name, float def = zero) const {
151 std::map<std::string,Variant>::const_iterator i = m.find(name);
152 if (i == m.end() || (*i).second.type != Variant::FLOAT1) return def;
153 return (*i).second.getFloat();
154 }
155
156 /*! Extracts a named Vec2f out of the container. */
157 Vec2f getVec2f(const char* name, const Vec2f& def = zero) const {

Callers 8

TutorialMethod · 0.45
VerifyApplicationMethod · 0.45
TutorialMethod · 0.45
parseCommandLineFunction · 0.45
TutorialMethod · 0.45
TutorialApplicationMethod · 0.45
addMaterialMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected