12 return b ?
"true" :
"false";
21 bool b = str == std::string(
"true") ? true :
false;
47 int val = std::stoi(str);
73 uint val = std::stoi(str);
99 float val = std::stof(str);
113 std::stringstream ss;
125 double val = std::stod(str);
139 std::stringstream ss;
140 ss << val.x <<
" " << val.y <<
" " << val.z;
151 std::stringstream ss(str);
155 float x = std::stof(substr);
158 float y = std::stof(substr);
161 float z = std::stof(substr);
177 std::stringstream ss;
178 ss << val.x <<
" " << val.y <<
" " << val.z;
189 std::stringstream ss(str);
193 int x = std::stoi(substr);
196 int y = std::stoi(substr);
199 int z = std::stoi(substr.c_str());
214 std::stringstream ss;
215 ss << val.x <<
" " << val.y <<
" " << val.z;
226 std::stringstream ss(str);
230 double x = std::stod(substr);
233 double y = std::stod(substr);
236 double z = std::stod(substr);
std::string serialize() override
bool deserialize(const std::string &str) override
This is an implementation of AdditiveCCD based on peridyno.
Vector< double, 3 > Vec3d