Update include/openmc/position.h

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Patrick Shriwise 2020-08-24 09:07:59 -05:00 committed by GitHub
parent 1bdc9ca877
commit ebca9a489d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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