! Read Vec3f from a string. */
| 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) { |