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

Method getVec3fa

tutorials/common/scenegraph/xml_loader.cpp:171–175  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

169
170 /*! Extracts a named Vec3f out of the container. */
171 Vec3fa getVec3fa(const char* name, const Vec3fa& def = zero) const {
172 std::map<std::string,Variant>::const_iterator i = m.find(name);
173 if (i == m.end() || (*i).second.type != Variant::FLOAT3) return def;
174 return (*i).second.getVec3fa();
175 }
176
177 /*! Extracts a named string out of the container. */
178 std::string getString(const char* name, std::string def = "") const {

Callers 3

parseCommandLineFunction · 0.45
TutorialApplicationMethod · 0.45
addMaterialMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected