25 #include <Eigen/Dense>
27 #include "core/common/math/WMath.h"
29 #include "WManipulatorRotation.h"
47 Eigen::Vector3d v( w[ 0 ], w[ 1 ], w[ 2 ] );
49 Eigen::AngleAxisd aa(
m_angle->get(
true ), v );
51 for( std::size_t i = 0; i < 3; ++i )
53 for( std::size_t j = 0; j < 3; ++j )
55 mat( i, j ) = aa.toRotationMatrix()( i, j );
An interface for dataset transformation manipulators.
virtual void reset()
Reset the transform.
WPropDouble m_angle
The angle to rotate.
WPropPosition m_axis
The axis to rotate around in world coordinates.
WManipulatorRotation()
Constructor.
virtual bool transformationChanged() const
Check if the transform has changed, for example because of a change to properties.
virtual ~WManipulatorRotation()
Destructor.
virtual WMatrixFixed< double, 4, 4 > getTransformationMatrix() const
Get the transformation matrix from this manipulator.
static MatrixType identity()
Returns an identity matrix.
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP).
WProperties::SPtr m_properties
the properties of the object.
This only is a 3d double vector.