Questions tagged [rotation]

A rotation is a circular movement of an object around a center (or point) of rotation. On a mobile device, it indicates the change of orientation.

A three-dimensional object rotates always around an imaginary line called a rotation axis. If the axis is within the body, and passes through its center of mass the body is said to rotate upon itself, or spin. A rotation about an external point, e.g. the Earth about the Sun, is called a revolution or orbital revolution, typically when it is produced by gravity.

Mathematically, a rotation is a rigid body movement which, unlike a translation, keeps a point fixed. This definition applies to rotations within both two and three dimensions (in a plane and in space, respectively.)

A rotation is commonly represented using , a rotation or .

On a mobile device, it indicates the change of orientation.

12013 questions
3
votes
1 answer

Aligning floating divs with rotated text

Using css3 transform, I'm trying to create a table structure using floating divs and the header text is rotated 90 degrees. http://jsfiddle.net/VNk2u/ I'm having trouble lining it up properly. Does the transform happen after it applies the other…
ajma
  • 12,106
  • 12
  • 71
  • 90
3
votes
1 answer

Rotating child object in OpenGL c++

I'm adding a robot with multiple DoG to my OpenGL application(later i want to implement inverse kinematics for this robot) and i need to move objects that are "connected" together. So far i added 3 STL object into scene and it looks like this There…
mereth
  • 465
  • 3
  • 9
  • 19
3
votes
5 answers

Flutter: How to move, rotate and zoom the container?

I want to make a container which can be dragged around, zoom and rotate. I am able to achieve a zoom. Below is my code: //variable declaration double _scale = 1.0; double _previousScale; var yOffset = 400.0; var xOffset = 50.0; var…
Ankur Prakash
  • 1,417
  • 4
  • 18
  • 31
3
votes
1 answer

Unity rotate object depending on other objects angle

I have two Gameobjects. The basic Question: "When I spin circle 1, I want to spin circle 2 in the same way manipulated by factor x" How do I sync the rotation around each of their local axis of circle 2 with the interactable rotation of circle one…
Flo
  • 97
  • 10
3
votes
4 answers

Java Tetris rotation

I know this has been asked a lot but I'd like to know how to rotate a Tetris piece? I already made a long and bad solution (~170 lines of code) but there should be easier way to do it. My tetris pieces consist of 4 blocks which all know their…
Kenny Roberts
  • 31
  • 1
  • 3
3
votes
1 answer

rotating player camera on a sphere (javascript/three.js)

I'm trying to have a player walk in a first person view on a planet, in three.js / javascript. In what I'm coding I want two things: a) A player to properly move around a planet, with two movement types: rotation around himself (left-right and A/D…
MirrorMirror
  • 186
  • 8
  • 36
  • 70
3
votes
1 answer

WPF diagonal line drag and drop

How can I write in WPF diagonal line with drap and drop behavior? I need to move it to the left and right, And if drag it from the top or bottom than to rotate it. My original post can be found under this…
Delashmate
  • 2,344
  • 5
  • 26
  • 40
3
votes
1 answer

Xamarin Forms: Camera picture is left rotated when comes to UI in IOS

The picture taken from the IOS camera is left rotated when showing it in the UI. I already faced this type of issue and solved by this thread. But in this case, I am saving only the image path to List. Camera code: public async void…
Sreejith Sree
  • 3,055
  • 4
  • 36
  • 105
3
votes
1 answer

Rotating a crystal in NumPy

I want to rotate a 5-atom crystal defined by X,Y,Z coordinates of atoms by a random angle. My initial idea was to use an external package to generate a rotation matrix (https://github.com/qobilidop/randrot) and then multiplying this matrix by a…
3
votes
3 answers

Can't limit the camera pitch angle between [-90º, 90º] in OpenGL using vectors!

I'm having a big problem limiting the camera pitch angle (between -90º and 90º) with the code below. This is somewhat a follow up to this question. The problem, it seems, is that the camera rotates more than -90º or more than +90º and when that…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
3
votes
1 answer

Android Screen Rotate Problem

I have a problem with my app. It correctly goes through all forms in a timetable system and shows the timetable however when I then rotate the screen to view landscape or portrait depending, it goes back to the first screen and I cant figure out…
dbaby7
  • 159
  • 1
  • 4
  • 11
3
votes
2 answers

Rotate left an Array in C without a for?

I'm writing a code and I need to rotate left an array many times. The problem is that I use a for loop. When I need to use the function with a short array it's fast. But as soon as I use an array of 10.000 elements and more it's really long because…
Pavlograd
  • 39
  • 5
3
votes
1 answer

CSS text rotation

I am trying to to overlay some rotated text over my images but I am having some difficulty with it. Here is my code without all the jQuery: http://jsfiddle.net/vCbcz/4/ Issues: The span does not align with the div after the rotation The background…
LostLin
  • 7,762
  • 12
  • 51
  • 73
3
votes
0 answers

iOS CoreMotion Attitude Relative to iPhone Coordinate System

I have researched this topic extensively, here on stack and all over the internet, and I can't seem to come across a solution. A lot of people on stack have asked similar questions, and people have provided responses but I don't think anyone has…
Chris S
  • 31
  • 1
3
votes
1 answer

Android ArCore. How I can make a rotation for some object along a line

I develop an android application with ArCore library. I need make two points, draw a line between they and set a text labels near each line. The text labels need to be rotated face-to-camera and have positions along the line. 1) Add a line between 2…
Andrew G
  • 663
  • 8
  • 15