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

Function getFloat

tutorials/common/scenegraph/obj_loader.cpp:60–65  ·  view source on GitHub ↗

! Read float from a string. */

Source from the content-addressed store, hash-verified

58
59 /*! Read float from a string. */
60 static inline float getFloat(const char*& token) {
61 token += strspn(token, " \t");
62 float n = (float)atof(token);
63 token += strcspn(token, " \t\r");
64 return n;
65 }
66
67 /*! Read int from a string. */
68 static inline int getInt(const char*& token) {

Callers 5

getVec2fFunction · 0.85
getVec3fFunction · 0.85
getVec3faFunction · 0.85
OBJLoaderMethod · 0.85
loadMTLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected