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

Function getVec3fa

tutorials/common/scenegraph/obj_loader.cpp:93–100  ·  view source on GitHub ↗

! Read Vec3fa from a string. */

Source from the content-addressed store, hash-verified

91
92 /*! Read Vec3fa from a string. */
93 static inline Vec3fa getVec3fa(const char*& token) {
94 float x = getFloat(token);
95 token += strspn(token, " \t");
96 if (*token == 0) return Vec3f(x);
97 float y = getFloat(token);
98 float z = getFloat(token);
99 return Vec3fa(x,y,z);
100 }
101
102 class OBJLoader
103 {

Callers 1

OBJLoaderMethod · 0.85

Calls 2

getFloatFunction · 0.85
Vec3faClass · 0.50

Tested by

no test coverage detected