Pass constant refs instead of objects to LookAt
parent
deb23a7b80
commit
1125957c83
|
@ -47,7 +47,7 @@ ZRotation(T radians)
|
|||
* of the component of 'up' that is orthogonal to the z-axis.
|
||||
*/
|
||||
template<class T> Eigen::Quaternion<T>
|
||||
LookAt(Eigen::Matrix<T, 3, 1> from, Eigen::Matrix<T, 3, 1> to, Eigen::Matrix<T, 3, 1> up)
|
||||
LookAt(const Eigen::Matrix<T, 3, 1>& from, const Eigen::Matrix<T, 3, 1>& to, const Eigen::Matrix<T, 3, 1>& up)
|
||||
{
|
||||
Eigen::Matrix<T, 3, 1> n = to - from;
|
||||
n.normalize();
|
||||
|
|
Loading…
Reference in New Issue