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

Method getVec3f

tutorials/common/scenegraph/xml_loader.cpp:164–168  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

162
163 /*! Extracts a named Vec3f out of the container. */
164 Vec3f getVec3f(const char* name, const Vec3f& def = zero) const {
165 std::map<std::string,Variant>::const_iterator i = m.find(name);
166 if (i == m.end() || (*i).second.type != Variant::FLOAT3) return def;
167 return (*i).second.getVec3f();
168 }
169
170 /*! Extracts a named Vec3f out of the container. */
171 Vec3fa getVec3fa(const char* name, const Vec3fa& def = zero) const {

Callers 1

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected