# Tag Info

11

EulerMatrix is available in MMA 10. To obtain the matrix for the transformation shown in your sketch, apply EulerMatrix[{α,β,γ},{3,1,3}] This transformation is known as the x-convention, because the second rotation is about x'-axis. The Wikipedia designates this by ZXZ. Those who do not have MMA 10 can obtain the same x-convention transformation using ...

9

To address your actual problem: If you're just looking to re-orient your B-spline cylinder, there's no need to go through the Euler angles. Here's one way. Consider the following cylinder: myCyl = BSplineSurface[{{{0, 0, 0}, {0, 1, 0}, {1, 1, 0}, {1, 0, 0}}, {{0, 0, 1}, {0, 1, 1}, {1, 1, 1}, {1, 0, 1}}}, ...

5

Thanks for J.M.'s answer for coordinates transformation. With[{transpts = Map[Composition[TranslationTransform[{1, 1, 1}], RotationTransform[{{0, 0, 1}, {1, 2, 1}}]], pts]}, Graphics3D[ {PointSize[Large], Point[pts], Blue, Line[pts], Arrow[Tube[{{0, 0, 0}, {0, 0, 0} + 2 Normalize@{0, 0, 1}}]], Black, PointSize[Medium], Point[{0, 0, ...

Only top voted, non community-wiki answers of a minimum length are eligible