11 #include "libmesh/libmesh.h"
25 const Real s = std::sin(angle * libMesh::pi / 180.0);
26 const Real c = std::cos(angle * libMesh::pi / 180.0);
29 _coords[0] = a * RealVectorValue(1.0, -c, -c);
30 _coords[1] = a * RealVectorValue(0.0, 0.0, s);
31 _coords[2] = a * RealVectorValue(0.0, -s, 0.0);
33 _coords[3] = a * RealVectorValue(0.0, 0.0, -s);
34 _coords[4] = a * RealVectorValue(-c, 1.0, -c);
35 _coords[5] = a * RealVectorValue(s, 0.0, 0.0);
37 _coords[6] = a * RealVectorValue(0.0, s, 0.0);
38 _coords[7] = a * RealVectorValue(-s, 0.0, 0.0);
39 _coords[8] = a * RealVectorValue(-c, -c, 1.0);
45 const Real phi_1 = euler_angles(0) * (libMesh::pi / 180.0);
46 const Real Phi = euler_angles(1) * (libMesh::pi / 180.0);
47 const Real phi_2 = euler_angles(2) * (libMesh::pi / 180.0);
49 const Real c1 = std::cos(phi_1);
50 const Real c2 = std::cos(Phi);
51 const Real c3 = std::cos(phi_2);
53 const Real s1 = std::sin(phi_1);
54 const Real s2 = std::sin(Phi);
55 const Real s3 = std::sin(phi_2);
60 _coords[0] = c1 * c3 - c2 * s1 * s3;
61 _coords[3] = -c1 * s3 - c2 * c3 * s1;
64 _coords[1] = c3 * s1 + c1 * c2 * s3;
65 _coords[4] = c1 * c2 * c3 - s1 * s3;
66 _coords[7] = -c1 * s2;