From ebca9a489d2d232f804cf04bfa24af46b0ecd3dd Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Mon, 24 Aug 2020 09:07:59 -0500 Subject: [PATCH] Update include/openmc/position.h Co-authored-by: Paul Romano --- include/openmc/position.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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