# Questions tagged [rotation]

Questions regarding built-in methods to rotate objects and how to perform them: Rotate, RotationTransform, ImageRotate, RotationMatrix etc.

172 questions
Filter by
Sorted by
Tagged with
1k views

### How to animate an impossible image

Could someone help me generate movement for this image This image is like an impossible figure, yet I have seen similar ones but I can't imagine how to give it movement. thanks in advance
• 2,345
109 views

### How is the Mathematica command FindGeometricTransformation related to the Kabsch agorithm?

I searched the internet for a Mathematica version of the Kabsch algorithm, using the search terms "Mathematica and Kabsch" nothing came up in. Looking through Mathematica documentation, I ...
• 333
1 vote
83 views

• 1,131
187 views

### Rotation of area

I'm trying to illustrate the rotation of the area 0≤y≤1-x^2, 0≤x≤1, when y=1-x^2 is rotated around y=1, and calculate the volume. I read Volume of a region of revolution but could not find a way to ...
• 1,313
258 views

### How can I make an animation when using RevolutionPlot3D?

Let ABCD be a square with AB=2. Rotate the filled ABD (see picture) about ...
• 3,921
352 views

### How to make a ParametricPlot3D curve rotate smoothly?

I'm trying to make the complicated ParametricPlot3D curve rotate along the z-axis smoothly. I tried Rotate on a simple 3D object first. ...
• 889
1 vote
155 views

### How to rotate a 2-body system about various independent axes with body-fixed pivot points/rotation origins?

I am trying to simulate a jointed two-body system on Mathematica, consisting of these components: "Beam" and "Plate". I am constraining the system such that the beam is always ...
122 views

### How to visualise a rotated cuboid as an output of its rotation matrix and original dimensions, using Graphics3D?

I'm new to Mathematica, and I'm trying to figure out how to visualise a rotated cuboid as an output of its rotation matrix and original dimensions using Graphics3D. ...
136 views

### Rotating text in the Epilog of a plot results in distortion

I want to rotate text in a plot. When I rotate by 90 degrees, or 180, it's perfectly OK. But if I want to rotate to 60 or 45 degrees, then the text appears distorted (see example below). How can I fix ...
• 347
77 views

### Defining the rotation axis independent of the origin [closed]

I tried to rotate a 3D object in Graphics3D using GeometricTransformations with ...
49 views

### How can it be that ViewPoint and ViewVertical are not perpendicular?

Execute the following code, then manually copy the outputted plot and use it in the next code: ...
• 20.1k
389 views

### Reverse the rotation of an animated gif and create a mirror image of it

I need Mathematica code to reverse the rotation direction and viewpoint of an animated GIF named "wheel." The current rotation is counterclockwise, and I need it to rotate clockwise while ...
• 309
106 views

...
• 8,619
56 views

### Combining two 3D objects

At this post How to combine one or more rotated graphics objects? There is a neat trick for combining 2D objects. When I apply it to 3D it does not work This code of a pyramid on a cube to approximate ...
• 940
46 views

### Table with an angle | rotate the co-ordintae

I have the following, Flatten[MapAt[Reverse, 2]@ Table[{i, j}, {i, 0, 10, 10}, {j, 0, 90, 90}], 1] that gives, ...
• 867
255 views

### Create a new graph based on a manipulated circle

I make a circle based on CirclePoints. From this list of points I take a part and rotate the coördinaties. Then I join the rotated part with the rest of the circelPoints. For example ...
• 2,855
299 views

### Givens rotation: What is the Mathematica equivalent to MATLAB's planerot function?

Matlab has a function called planerot which takes a two-component column vector $x$ as input and returns a $2 \times 2$ matrix $G$ and a two component column vector ...
• 313
475 views

### How can I rotate the x and y axis?

I would like to know if it is possible to carry out a rotation involving the x and y axis (the gridline too) cause I know how to do it with a vector and an arrow but not with the axis.
483 views

### How to find the angle of a rotation matrix

I know there is post about finding angles of rotation matrix, but all of them required more than a rotation matrix, I want to know that If I have a matrix ...
• 33
180 views

### MoS2 (Transition Metal Dichalcogenide) layer using Mathematica [closed]

I'm trying to generate Transition metal dichalcogenide monolayer (MoS2). Can you please assist me with this problem Thanks and regards Mo 0.00 0.00 0.1682 S 0.666 0.666 0.2124 S 0.666 0.666 0....
• 7
1 vote
35 views

### Numerical values versus exact values in GeometricTransformation

I have been doing some geometric transformations in 3D. The code bellow should transform (rotate) two black lines into red and blue tubes. At first I used exact values of coordinates and the result ...
• 20.1k
1 vote
32 views

### How to undo (cancel) manual rotations with GeometricTransformation

How to dynamically transform an object inside Graphis3D so that when whole Graphis3D is manually rotated by pointer the object ...
• 20.1k
84 views

### Code to do geometric transformation equivalent to dragging by mouse in circle

We can click and drag Graphics3D objects. Suppose you click and drag on such an object in the center of it and move your pointer of mouse in a circle of radius <...
• 20.1k
107 views

### Turn a two-dimensional function with cylindrical symmetry into a three-dimensional function

Say I have a function that I solved from a differential equation in 2-dimensions because I know in advance that there is cylindrical symmetry in the solution. For instance, say we obtain the solution: ...
1 vote
208 views

### Generating Lyndon words modulo mirroring operation and substituion

I have two letters A,B. I want to generate all words say up to length 22 with the following properties. There is no "canonical" list so any such list will suffice, though there are many ...
• 657
269 views

### The jumping problem when rolling a Reuleaux triangle

I'm making an animation of a Reuleaux triangle rolling on a straight line like this The animation generated by my code is not continuous. Is there a simple way to eliminate jumping? ...
• 5,662
369 views

### How can I rotate a cube uniformly?

Background Alice, Bob, and the average shadow of a cube I use the following code to simulate this experiment, ...
• 7,148
251 views

### Maintaining shape size while rotating in GraphicsGrid

I've the following snippet, simplified from a more complex code: ...
• 960
131 views

### Why it Lost text when export graphics?

I want to export graphics which has a text object, but it will lose the text when given a special rotate angle. I have an angle list to show different text on the graphics, here only give a simple ...
• 901
1 vote
126 views

### Obtain angles of rotation from singular vectors U and V from SVD

My question is a continuation to a previous question. I have a matrix M which is a function of theta1, theta2, phi1 and phi2. Now, I want to get back these angles using the singular vectors (U and V) ...
• 11
82 views

I hope someone can assist me as I am pretty new to Mathematica and understanding the language is a bit of a hurdle. I am trying to rotate a plot of interlaced circles by some angle without rotating ...
77 views

### 3D shearing w. r. t. x-axis [closed]

Shearing in $X$ axis is achieved by using the following shearing equations- X_new = X_old, Y_new = Y_old + Sh_y × X_old, Z_new = Z_old + Sh_z × X_old My question is during Y_new and Z_new calculations ...
• 99
55 views

### PlotRange is not applied after text image conversion is moved

I converted the text image using Rotate and Translate functions. ...
• 1,748
1 vote
130 views

• 10.3k
124 views

### Mapping picture, rotate

I'm trying to do this. it doesn't have to be the same.
• 87
1k views

### How to roll a graph on the y-axis

I want to roll the function f(x)=sqrt(x), x∈[0,1] along the y-axis. I know how to rotate the graph around a point, but I'm not sure how to rotate along an axis in 2D. Rotating around a point e.g. (0,...
• 382
74 views

### How to compute the limit of a subdivided rotation applied to itself n times?

I have the following function: f[n_, angle_, axis_] := Simplify[RotationMatrix[angle/n, axis]^n]; where n is a positive integer, angle is real and axis is a 3d ...
• 65
1 vote
95 views

### Rectangular bar and wave 3dGraphics

I plot rectangular bar in 3D. with this bar I also draw a wave (Sin(x,y)). upon combining these graphs the waves appear in the vertical direction. I want to rotate it in the horizontal direction in ...
• 11
57 views

### Why is RotationTransform 100x slower than manually specifying the transformation?

I'm plotting an implicit surface using RegionPlot3D. I have two descriptions of the surface which I believe are (or should be) conceptually and functionally ...
• 121
124 views

### Rotation of a vector around a rotation axis [closed]

Is there an easy way (like a defined function) in Mathematica to rotate a direction vector around a rotation axis for θ degrees? For instance: rotate [3,4,5] around ...
• 61
286 views

### Text rotation in GeoGraphics

I have a problem rotating some text in GeoGraphics. Whenever I rotate the text I am also getting a shift in the latitude. OS: Linux x86 (64-bit) FullVersionNumber: 12.1.1 As a minimum working ...
• 1,533
1 vote
98 views

### Rotating 3D graphics inside Show separately by clicking and dragging

Is there a way how to rotate by clicking and dragging just one of the 3D graphics inside Show? For example rotating the cube without rotating the tetrahedron in this code: ...
• 20.1k
1 vote
206 views

### Geometry3D objects as functions of parameters

I want to make a simulation of a rigid body with mathematica, but I want to use a Geometry3D object instead of a Graphics3D primitive. Mainly I don't know how to rotate the 3D model, I know how to do ...
• 517
133 views

### EulerMatrix with axes other than X, Y an Z

The Mathematica function EulerMatrix[{Alpha, Beta, Gamma},{a,b,c}] gives the Euler matrix for rotation about X, Y and Z axes. Here by choosing the order of a, b and ...
• 1,225