write the 12 double of the matrix in a stream
| 704 | |
| 705 | // write the 12 double of the matrix in a stream |
| 706 | std::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 |
| 721 | void Matrix4D::fromString(const std::string& str) |
no test coverage detected