mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
the big Array/Cwise rework as discussed on the mailing list. The new API
can be seen in Eigen/src/Core/Cwise.h.
This commit is contained in:
@@ -212,8 +212,8 @@ inline Quaternion<Scalar>& Quaternion<Scalar>::operator=(EulerAnglesType ea)
|
||||
{
|
||||
ea.coeffs() *= 0.5;
|
||||
|
||||
Vector3 cosines = ea.coeffs().cwiseCos();
|
||||
Vector3 sines = ea.coeffs().cwiseSin();
|
||||
Vector3 cosines = ea.coeffs().cwise().cos();
|
||||
Vector3 sines = ea.coeffs().cwise().sin();
|
||||
|
||||
Scalar cYcZ = cosines.y() * cosines.z();
|
||||
Scalar sYsZ = sines.y() * sines.z();
|
||||
|
||||
Reference in New Issue
Block a user