MCPcopy Create free account
hub / github.com/AIRLegend/aitrack / to_string

Method to_string

AITracker/src/data.cpp:12–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12std::string FaceData::to_string()
13{
14 std::string datastring =
15 std::string("Pitch ") + std::to_string(this->rotation[0]) +
16 std::string(" Yaw ") + std::to_string(this->rotation[1]) +
17 std::string(" Roll ") + std::to_string(this->rotation[2]);
18
19 datastring +=
20 std::string(" X: ") +
21 std::to_string(this->translation[0]) + ", Y: " +
22 std::to_string(this->translation[1]) + ", Z: " +
23 std::to_string(this->translation[2]) ;
24
25
26 /*datastring +=
27 std::string("\n\Crop coords: ") +
28 std::to_string(this->face_coords[0]) + ", " +
29 std::to_string(this->face_coords[1]) + ", " +
30 std::to_string(this->face_coords[2]) + ", " +
31 std::to_string(this->face_coords[3]);
32 */
33
34 return datastring;
35}
36
37

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected