Skip to main content

Questions tagged [rotation]

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

Filter by
Sorted by
Tagged with
7 votes
1 answer
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
zeros's user avatar
  • 2,345
7 votes
1 answer
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 ...
complex's user avatar
  • 333
1 vote
2 answers
83 views

How can I get a simpler way to draw a solid?

Let two circles center $O_1$, radius $10$ and center $O_2$, radius $6$ so that $AB$ is a diameter of the circle center $O_2$. I am trying to draw solid when rotate the filled region around line $...
minhthien_2016's user avatar
6 votes
2 answers
279 views

How can I draw solid when rotate this rigion around Ox axis?

I have this picture, knowing that $AC=2$. The point $B$ is midpoint of $AC$, $D$ is intersection point of the semicirle and arc center at $B$ and radius 1. I want to rotate the region with gray fill ...
Thuy Nguyen's user avatar
  • 1,131
6 votes
3 answers
1k views

How to rotate a triangle to get this picture?

Based on this answer, I am trying to draw the picture b). I tried ...
minhthien_2016's user avatar
4 votes
1 answer
94 views

How can I get a 3D form when rotate the polygon $ABCD$ around the line $AB$

I have polygon $ABCD$ here $A(1,0)$, $B\left (\dfrac{1}{2},\dfrac{\sqrt{3}}{2}\right)$, $C\left (-\dfrac{1}{2},\dfrac{\sqrt{3}}{2}\right)$, $D(-1,0)$. How can I get a 3D form when rotate the polygon $...
Thuy Nguyen's user avatar
  • 1,131
2 votes
2 answers
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 ...
mf67's user avatar
  • 1,313
6 votes
2 answers
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 ...
minhthien_2016's user avatar
4 votes
4 answers
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. ...
metroidman's user avatar
1 vote
1 answer
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 ...
Richard Casey's user avatar
2 votes
1 answer
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. ...
Richard Casey's user avatar
2 votes
1 answer
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 ...
lia's user avatar
  • 347
2 votes
2 answers
77 views

Defining the rotation axis independent of the origin [closed]

I tried to rotate a 3D object in Graphics3D using GeometricTransformations with ...
Cptn Bluebear's user avatar
0 votes
0 answers
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: ...
azerbajdzan's user avatar
  • 20.1k
8 votes
2 answers
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 ...
Pamela's user avatar
  • 309
2 votes
2 answers
106 views

Problem of RollPitchYawAngles and orthogonalize

...
HyperGroups's user avatar
  • 8,619
0 votes
0 answers
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 ...
Rogo's user avatar
  • 940
2 votes
1 answer
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, ...
a019's user avatar
  • 867
3 votes
3 answers
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 ...
Michiel van Mens's user avatar
3 votes
2 answers
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 ...
noir1993's user avatar
  • 313
4 votes
1 answer
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.
Javieer Picazo's user avatar
3 votes
3 answers
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 ...
zzzz's user avatar
  • 33
0 votes
1 answer
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....
Shen's user avatar
  • 7
1 vote
0 answers
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 ...
azerbajdzan's user avatar
  • 20.1k
1 vote
0 answers
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 ...
azerbajdzan's user avatar
  • 20.1k
0 votes
1 answer
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 <...
azerbajdzan's user avatar
  • 20.1k
0 votes
1 answer
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: ...
burntclaw's user avatar
1 vote
2 answers
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 ...
2132123's user avatar
  • 657
5 votes
2 answers
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? ...
expression's user avatar
  • 5,662
3 votes
3 answers
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, ...
matrix42's user avatar
  • 7,148
6 votes
3 answers
251 views

Maintaining shape size while rotating in GraphicsGrid

I've the following snippet, simplified from a more complex code: ...
Jepessen's user avatar
  • 960
3 votes
1 answer
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 ...
zongxian's user avatar
  • 901
1 vote
0 answers
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) ...
priyBang's user avatar
0 votes
1 answer
82 views

Can someone please help me in breaking down what this code means?

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 ...
Jetty's user avatar
  • 1
-1 votes
1 answer
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 ...
S. M.'s user avatar
  • 99
2 votes
0 answers
55 views

PlotRange is not applied after text image conversion is moved

I converted the text image using Rotate and Translate functions. ...
Milk's user avatar
  • 1,748
1 vote
1 answer
130 views

Finding rotated function on a sphere in Mathematica

I'm trying to rotate a scalar valued function $$f(\theta,\phi)$$ on a sphere. Following this post, I get $$ \begin{pmatrix} f'(\theta',\phi')\sin\theta'\cos\phi'\\ f'(\theta',\phi')\sin\theta'\sin\phi'...
123infinity's user avatar
5 votes
2 answers
216 views

Vectors do not define a plane when constructing a RotationMatrix

The following code: RotationMatrix[{{0, 1, 0}, {0, -1, 0}}] Gives an assertion message: ...
Chris Guo's user avatar
  • 309
5 votes
0 answers
155 views

Are there any dedicated built-in methods to NIntegrate over the unit sphere or the 3D rotational group?

As part of a molecular-physics calculation, I need to perform an integral to find the average of a certain function over all the possible orientations of the molecule, $$ \langle f(\mathbf v)\rangle = ...
Emilio Pisanty's user avatar
2 votes
2 answers
124 views

Mapping picture, rotate

I'm trying to do this. it doesn't have to be the same.
D.T.'s user avatar
  • 87
18 votes
2 answers
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,...
LLCJ's user avatar
  • 382
2 votes
1 answer
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 ...
Lenny's user avatar
  • 65
1 vote
1 answer
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 ...
Khan's user avatar
  • 11
2 votes
0 answers
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 ...
Nickolas's user avatar
  • 121
0 votes
1 answer
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 ...
Reza's user avatar
  • 61
5 votes
3 answers
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 ...
demm's user avatar
  • 1,533
1 vote
1 answer
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: ...
azerbajdzan's user avatar
  • 20.1k
1 vote
1 answer
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 ...
Gluoncito's user avatar
  • 517
2 votes
2 answers
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 ...
user49535's user avatar
  • 1,225
0 votes
1 answer
67 views

Difference between Rotate[] and Translate[]

I don't understand why Rotate[] and Translate[] behave differently. For example, ga and gb below look as I expected: ...
Joseph O'Rourke's user avatar