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

Function getVec3f

tutorials/common/scenegraph/obj_loader.cpp:83–90  ·  view source on GitHub ↗

! Read Vec3f from a string. */

Source from the content-addressed store, hash-verified

81
82 /*! Read Vec3f from a string. */
83 static inline Vec3f getVec3f(const char*& token) {
84 float x = getFloat(token);
85 token += strspn(token, " \t");
86 if (*token == 0) return Vec3f(x);
87 float y = getFloat(token);
88 float z = getFloat(token);
89 return Vec3f(x,y,z);
90 }
91
92 /*! Read Vec3fa from a string. */
93 static inline Vec3fa getVec3fa(const char*& token) {

Callers 2

OBJLoaderMethod · 0.85
loadMTLMethod · 0.85

Calls 1

getFloatFunction · 0.85

Tested by

no test coverage detected