9 #ifndef EVENTPRIMITIVES_AMGTRANSFORMPLUGIN_H
10 #define EVENTPRIMITIVES_AMGTRANSFORMPLUGIN_H
24 inline explicit Transform(
const Vector3d& translation) {
25 check_template_params();
26 m_matrix.block(0, 3, 3, 1) = translation;
27 m_matrix.block(0, 0, 3, 3).setIdentity();
28 if (
int(
Mode) == Affine)
33 const Vector3d& translation) {
34 check_template_params();
35 m_matrix.block(0, 0, 3, 3) =
rotation;
36 m_matrix.block(0, 3, 3, 1) = translation;
37 if (
int(
Mode) == Affine)
41 const TranslationType& translation) {
42 check_template_params();
43 m_matrix.block(0, 0, 3, 3) =
rotation;
44 m_matrix.block(0, 3, 3, 1) = translation.vector();
45 if (
int(
Mode) == Affine)
49 inline explicit Transform(
const Vector3d& rotationMatrixCol0,
50 const Vector3d& rotationMatrixCol1,
51 const Vector3d& rotationMatrixCol2,
52 const Vector3d& translation) {
53 check_template_params();
54 m_matrix.block(0, 0, 3, 1) = rotationMatrixCol0;
55 m_matrix.block(0, 1, 3, 1) = rotationMatrixCol1;
56 m_matrix.block(0, 2, 3, 1) = rotationMatrixCol2;
57 m_matrix.block(0, 3, 3, 1) = translation;
58 if (
int(
Mode) == Affine)