| 31 | } |
| 32 | |
| 33 | Vec4f string_to_Vec4f ( std::string str ) |
| 34 | { |
| 35 | size_t next = 0; |
| 36 | const float x = std::stof(str,&next); str = str.substr(next+1); |
| 37 | const float y = std::stof(str,&next); str = str.substr(next+1); |
| 38 | const float z = std::stof(str,&next); str = str.substr(next+1); |
| 39 | const float w = std::stof(str,&next); |
| 40 | return Vec4f(x,y,z,w); |
| 41 | } |
| 42 | } |