diff --git a/src/celmath/geomutil.h b/src/celmath/geomutil.h index f44e0fc1..2e0fa6a8 100644 --- a/src/celmath/geomutil.h +++ b/src/celmath/geomutil.h @@ -47,7 +47,7 @@ ZRotation(T radians) * of the component of 'up' that is orthogonal to the z-axis. */ template Eigen::Quaternion -LookAt(Eigen::Matrix from, Eigen::Matrix to, Eigen::Matrix up) +LookAt(const Eigen::Matrix& from, const Eigen::Matrix& to, const Eigen::Matrix& up) { Eigen::Matrix n = to - from; n.normalize();