| 261 | } |
| 262 | |
| 263 | Rigid3d ReadRigid3dFromStringStream(std::stringstream* stream) { |
| 264 | Rigid3d tform; |
| 265 | tform.rotation().w() = ReadBinaryLittleEndian<double>(stream); |
| 266 | tform.rotation().x() = ReadBinaryLittleEndian<double>(stream); |
| 267 | tform.rotation().y() = ReadBinaryLittleEndian<double>(stream); |
| 268 | tform.rotation().z() = ReadBinaryLittleEndian<double>(stream); |
| 269 | tform.translation().x() = ReadBinaryLittleEndian<double>(stream); |
| 270 | tform.translation().y() = ReadBinaryLittleEndian<double>(stream); |
| 271 | tform.translation().z() = ReadBinaryLittleEndian<double>(stream); |
| 272 | return tform; |
| 273 | } |
| 274 | |
| 275 | void WriteRigid3dToStringStream(const Rigid3d& tform, |
| 276 | std::stringstream* stream) { |
no test coverage detected