| 22 | } |
| 23 | |
| 24 | Vec3f string_to_Vec3f ( std::string str ) |
| 25 | { |
| 26 | size_t next = 0; |
| 27 | const float x = std::stof(str,&next); str = str.substr(next+1); |
| 28 | const float y = std::stof(str,&next); str = str.substr(next+1); |
| 29 | const float z = std::stof(str,&next); |
| 30 | return Vec3f(x,y,z); |
| 31 | } |
| 32 | |
| 33 | Vec4f string_to_Vec4f ( std::string str ) |
| 34 | { |
no test coverage detected