Skip to content
Snippets Groups Projects
Commit 460d114a authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

fix a bug that new point was not initialized with zero

parent d8b6e5d0
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ inline MathLib::Point3d operator*(MATRIX const& mat, MathLib::Point3d const& p) ...@@ -53,6 +53,7 @@ inline MathLib::Point3d operator*(MATRIX const& mat, MathLib::Point3d const& p)
{ {
MathLib::Point3d new_p; MathLib::Point3d new_p;
for (std::size_t i(0); i<3; ++i) { for (std::size_t i(0); i<3; ++i) {
new_p[i] = 0.0;
for (std::size_t j(0); j<3; ++j) { for (std::size_t j(0); j<3; ++j) {
new_p[i] += mat(i,j)*p[j]; new_p[i] += mat(i,j)*p[j];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment