! Extracts a named Vec3f out of the container. */
| 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 { |
no test coverage detected