113 const auto R = RealTensorValue::extrinsic_rotation_matrix(90, 0, 0);
114 auto rotated = R * x;
116 LIBMESH_ASSERT_FP_EQUAL(0, rotated(0), tol);
117 LIBMESH_ASSERT_FP_EQUAL(1, rotated(1), tol);
118 LIBMESH_ASSERT_FP_EQUAL(0, rotated(2), tol);
120 const auto invR = RealTensorValue::inverse_extrinsic_rotation_matrix(90, 0, 0);
121 rotated = invR * rotated;
122 LIBMESH_ASSERT_FP_EQUAL(1, rotated(0), tol);
123 LIBMESH_ASSERT_FP_EQUAL(0, rotated(1), tol);
124 LIBMESH_ASSERT_FP_EQUAL(0, rotated(2), tol);
129 const auto R = RealTensorValue::extrinsic_rotation_matrix(90, 90, 90);
130 auto rotated = R * x;
133 LIBMESH_ASSERT_FP_EQUAL(1, rotated(0), tol);
134 LIBMESH_ASSERT_FP_EQUAL(-1, rotated(1), tol);
135 LIBMESH_ASSERT_FP_EQUAL(1, rotated(2), tol);
137 const auto invR = RealTensorValue::inverse_extrinsic_rotation_matrix(90, 90, 90);
138 rotated = invR * rotated;
139 LIBMESH_ASSERT_FP_EQUAL(1, rotated(0), tol);
140 LIBMESH_ASSERT_FP_EQUAL(1, rotated(1), tol);
141 LIBMESH_ASSERT_FP_EQUAL(1, rotated(2), tol);
static constexpr Real TOLERANCE
A Point defines a location in LIBMESH_DIM dimensional Real space.