MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / toString

Method toString

src/Base/Matrix.cpp:706–718  ·  view source on GitHub ↗

write the 12 double of the matrix in a stream

Source from the content-addressed store, hash-verified

704
705// write the 12 double of the matrix in a stream
706std::string Matrix4D::toString() const
707{
708 std::stringstream str;
709 // NOLINTBEGIN
710 for (int i = 0; i < 4; i++) {
711 for (int j = 0; j < 4; j++) {
712 str << dMtrx4D[i][j] << " ";
713 }
714 }
715 // NOLINTEND
716
717 return str.str();
718}
719
720// read the 12 double of the matrix from a stream
721void Matrix4D::fromString(const std::string& str)

Callers 2

makeUniqueNameMethod · 0.45
readFilesMethod · 0.45

Calls 1

strMethod · 0.45

Tested by

no test coverage detected