diff --git a/include/openmc/position.h b/include/openmc/position.h index b27a0f10c..643447ac2 100644 --- a/include/openmc/position.h +++ b/include/openmc/position.h @@ -67,7 +67,7 @@ struct Position { const double projection = n.dot(*this); const double magnitude = n.dot(n); n *= (2.0 * projection / magnitude); - return *this -= n; + return *this - n; } //! Rotate the position based on a rotation matrix