Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/GeometryToolbox.cpp @ 150:62670cc2bb50 wasm
print matrix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 01 Feb 2018 16:07:54 +0100 |
parents | 2115530d3703 |
children | c5044bbfc303 |
comparison
equal
deleted
inserted
replaced
149:f7be90de6d1b | 150:62670cc2bb50 |
---|---|
40 } | 40 } |
41 printf("\n"); | 41 printf("\n"); |
42 } | 42 } |
43 | 43 |
44 | 44 |
45 void Print(const Matrix& m) | |
46 { | |
47 for (size_t i = 0; i < m.size1(); i++) | |
48 { | |
49 for (size_t j = 0; j < m.size2(); j++) | |
50 { | |
51 printf("%8.2f ", m(i,j)); | |
52 } | |
53 printf("\n"); | |
54 } | |
55 } | |
56 | |
57 | |
45 bool ParseVector(Vector& target, | 58 bool ParseVector(Vector& target, |
46 const std::string& value) | 59 const std::string& value) |
47 { | 60 { |
48 std::vector<std::string> items; | 61 std::vector<std::string> items; |
49 Orthanc::Toolbox::TokenizeString(items, value, '\\'); | 62 Orthanc::Toolbox::TokenizeString(items, value, '\\'); |