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.

0
votes
1answer
17 views

Capturing device rotation without rotating the application

Tenho uma aplicação com Android Webview, minha activity está configurada para portrait: <activity android:name=".activity.MainActivity" android:screenOrientation="portrait" ...
-1
votes
1answer
5 views

How do I rotate the orientation in the ghostscript plot for ps file?

I am plotting the (postscript) ps file using the ghostscript in the terminal. When I use the command"gs file.ps", it always gives the portrait orientation like following enter image description here ...
0
votes
0answers
30 views

My mesh flips for a rotation smaller than math.pi

I am coming back since I am having this geometric problem that I am not familiar with on Unity. For a f-zero style game, I have a collider box (white on the screen captures) which is the origin of my ...
1
vote
1answer
21 views

Processing: Cube rotating stay in one place while moving

In the Processing program, I have to make a cube to move in place where the cube moves when pressing lowercase x for counterclockwise of x axis, or pressing capital X for clockwise of x axis, and ...
-1
votes
0answers
16 views

How to detect collisions while spine is rotating in Unity3D C#?

I am making a First Person Shooter and I have a rigged player with a mouse look script, and I used to rotate the spine with spine.transform.rotation, but this method does not look for collisions, this ...
0
votes
1answer
34 views

Android app widget SeekBar progress survives onDestroy()

I have started studying Android programming recently after taking a very long break (half a decade) from programming altogether. It's been going well so far. I have noticed that Seek Bar's progress ...
0
votes
0answers
31 views

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 ...
0
votes
2answers
43 views

ios UIImageView rotation direction in swift at variable degree in clockwise direction

I am rotating image through this code UIView.animate(withDuration: 2) { self.blueNeedleImageView.transform = CGAffineTransform(rotationAngle: CGFloat(myDegreeValue * Double.pi / 180)) } ...
1
vote
1answer
24 views

Rotate camera around the character (up and down) Unity3D

I have a script that moves the camera in third person, I got the camera to turn right and left along with the character, but I'm not able to make the camera turn around the character up and down, the ...
1
vote
2answers
25 views

Pygame Rotate Rectangles within Surface

I'm having trouble keeping track of two rectangles that I blit onto a surface after I then rotate that surface. There are three rectangles draw on to the surface, representing the player. As the left ...
0
votes
1answer
17 views

How can i move a shape forward in a certain angle in java?

I'm trying to create a game in which i can turn the rectangle around and move it forward in a certain direction or backward, when i press right it rotates clockwise and if i press left it goes counter-...
0
votes
1answer
25 views

connect a line to the car in canvas

var car; var front; var back; var carpoint1; var carpoint2; var carpoint3; var carpoint4; var img = new Image(); img.src ='https://cdn4.iconfinder.com/data/icons/transportation-2-4/60/...
0
votes
0answers
18 views

UINavBar LargeTitles and UIcollectionview issue on viewWillTransition (rotation)

As the sample video, if you have a tableview or collectionview and in portrait all the cells are visible, automatically the scroll is disabled. So if you turn in landscape, scroll the collection to ...
0
votes
1answer
27 views

jQuery UI resizable with rotated element

I have a rotated element to make it resizable. The rotation is drawn by css transform:rotate. Here I have a problem the direction of resizing is not working properly. For example, when you drag the ...
0
votes
0answers
14 views

VTK Python, Rotate vector around point

I am using VTK and Python for a project related to my studies. I am given the following point centerOfRotation and the orientation degrees, as well as the vector [1, 0, 0]. Now I want to rotate the ...
0
votes
0answers
20 views

How to animate camera from one view to another view in three.js

I take a screenshot of my scene from a particular point of view. I save my camera properties. And I let my users play with the scene. Within my scene, I have a button to switch my current view to the ...
3
votes
1answer
27 views

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 ...
0
votes
0answers
26 views

Android vertical text view - position at desired X and Y co-ordinate on Android TV screen

Android TextView - after rotating the TextView to 90* (to make it vertical ), I want to display the text view at desired X and Y coordinate with respect to the screen. I am able to achieve this for ...
1
vote
1answer
24 views

Rotation - Yaw Roll Pitch

I am trying to rotate a object based on the sensor values (pitch roll yaw). I have the following script snippet of code to rotate the object. if ((0<=ax&& ax<1.03f) && (0 <= ...
2
votes
1answer
24 views

WPF Rotate and return BitmapSource by any angle

Hei, I tried this: public static BitmapSource RotateImage(Image b, float angle) { BitmapSource rotita = (BitmapSource)b.Source; DrawingVisual drawingVisual = new DrawingVisual(); ...
0
votes
1answer
43 views

Calculating rotation difference in polar coordinates

I've got a problem with substracting two polar coordinate rotations. The problem is when my car should pass the '6 oclock' rotation. From what I observed, rotation towards X axis equals 0, towards ...
0
votes
2answers
41 views

Quadrilateral Intersection 4 points

Rectangle Possibilities I am trying to figure out if 2 rectangles that are rotated are intersecting. The image(Rectangle Possibilities) shows examples of intersecting rectangle possibilities. The ...
-5
votes
1answer
47 views

Int Array left rotation from given index in c#

The Array example is {4, 5, 3, 6, 1} The user will input the index number and the array will be rotated left from the given index number. Example: If the user input(index number) is 2, the result is: ...
0
votes
1answer
19 views

Permanent RotationAnimation with Kotlin

For my application project, I planned a welcome activity that allows the user to choose a group of countries. For that I have two buttons: the first one will allow a CardView containing 4 TextViews to ...
2
votes
2answers
97 views

Why is my FPS camera rolling, once and for all?

If I ignore the sordid details of quaternions algebra I think I understand the maths behind rotation and translation transformations. But still fail to understand what I am doing wrong. Why is my ...
0
votes
0answers
17 views

3D rotation of a matrix from a rotation matrix

I have a matrix (call it T) with coordinate system (x, y, z) which I need to rotate into a new coordinate system, (a, b, c). According to this source, the rotation matrix, R can be defined as the ...
0
votes
1answer
19 views

How do I place a transformed div right next to the left margin of a webpage?

I'm trying to rotate a div 270 degrees and place it right next to the far left side of a webpage. However, there always seems to be a gap between that div and the side of the page even though I've ...
-1
votes
2answers
52 views

roation on trigger oculus go c# unity

I'm looking to have a game object rotate when the trigger on the oculus go is pressed but only then, I have the following code. Unfortunately this continuously roates even when I take my finger off ...
0
votes
0answers
9 views

How to rotate an NSImage?

This code creates a NSImage from a PDF page. I want all pages to display unrotated. It works fine if rotation = 0. If rotation = 180 and I don't set CGContextRotateCTM to -rotation, the image is ...
0
votes
1answer
19 views

SVG mutltiple transform - rotate then translate horizontally

Using an SVG I am trying to rotate it by 30 degrees and then translate that horizontally 100. The issue is that when I rotate the coordinate system, it is rotated and so when I try to translate I will ...
-1
votes
4answers
35 views

Rotate text without jQuery in JavaScript 6 [closed]

I want to do something like this: document.getElementById("text").style.transform ="rotate(360deg)"; But it isn't working, And i want my text to be rotated 360°. Technechally I thought this would ...
0
votes
1answer
14 views

Draw routines only erratically executing in javascript

temp=document.getElementById("temp"); tempctx=temp.getContext("2d"); card=document.getElementById("card"); cardctx=card.getContext("2d"); cardctx.save(); for(i=0; i<14; i++) { cardctx.restore()...
0
votes
2answers
22 views

How to rotate an array of indices in numpy?

I have a grid which is a numpy array of shape (522, 476). I then have another numpy array which is a trajectory of individual xy points (indices of the grid) of shape (2, 3866). I rotate the grid ...
0
votes
0answers
60 views

AWS video-on-demand-on-aws template portrait problems - MediaCoder

I have deployed the video-on-demand-on-aws template and modified it a bit - removing DASH and MP4 output, and removing some of the HLS low-res outputs. Initially videos recorded by iPhone in portrait ...
0
votes
2answers
15 views

Unity3d top-down camera control

I have a top-down game in Unity3D where a player can control a car. For now a camera keeps the car in the middle of the screen and rotates to the direction the car is pointing to. That is how I did ...
0
votes
1answer
24 views

How to change keyboard IMEaction on screen rotation

I need to change keyboard IME whenever the screen rotates. If device is in landscape i need the action to be IME_ACTION_NEXT, if the device rotates - while keyboard is presented - i need to change the ...
0
votes
1answer
21 views

change text with css (less) animation rotate (Y) possible? [duplicate]

I'm stuck here. Anyone knows where's the mistake in below code? Tried searching and tried all kinds of codes, I could think of. For some reason, the text does not alter but only shows "Original Text" ...
0
votes
0answers
15 views

Algorithm for knowing angle of rotating a shape with mouse drag as done in Microsoft office

I am trying to rotate a shape on movement of mouse in C++. I want to do it same as we see rotation of shapes in Microsoft office or PowerPoint. But the issue is when we start to drag in clockwise ...
1
vote
2answers
66 views

Android : Rotate Vector Image to 90 degree

I have following code for my vector: <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="314.015" ...
2
votes
1answer
28 views

Maintaining result of search view on rotating phone

I am quite new to this (java,android and stack overflow), so bear with me. I have a bunch of products that I read from my database and I store/add to my ArrayList of type product and output this to a ...
1
vote
0answers
14 views

Image auto rotate to 90 degree issue on mobile/ipad

In my meteor app i am using Filterous 2 for image manipulation but when i trying apply effect on large images(ImageWidth>1000) from ipad/iphons. Images get rotated 90 degree after applying the effect. ...
0
votes
2answers
51 views

Does the Windows Composition API support 2.5D projected rotation?

I have started to use the Windows Composition API in UWP applications to animate elements of the UI. Visual elements expose RotationAngleInDegrees and RotationAngle properties as well as a ...
0
votes
1answer
51 views

C# finding angle between 2 given points

In the program that I'm working on, I have an object (the player) in the shape of a triangle, and that triangle is supposed to rotate always facing the mouse. given this two points I have tried ...
0
votes
0answers
28 views

mp4 video rotation metadata removal

Using ffmpeg to remove rotate metadata works but output is little bit confusing as Metadata: rotate: 90 still appears in output section. ffmpeg version N-92663-g8affd75 seems to keep rotate ...
0
votes
0answers
5 views

Does jetpack photon support image rotation ? If no, Can the existing code be modified to add the functionality?

The jetpack photon does support image crop and other image operations. Though I'm not sure if it supports image rotation. If it does not support image rotation, Can the existing php code be modified ...
0
votes
0answers
21 views

In left- or right-rotation, where did those conventions for the directions come from?

Generally, left rotation moves elements towards the start of the array, and right rotation goes towards the end. Why does left corresponds with start and right the end? I remember seeing tape-like ...
0
votes
0answers
17 views

Why canvas element is not behaving like a block element when it has rotated? [duplicate]

I'm working on a pong game for mobile. I'm writing on Javascript, HTML and CSS. In desktop version my app works fine and my canvas which is I use for display pong is horizontal, but in mobile version ...
0
votes
0answers
9 views

Draw a ring with a circular blob which rotates through the circumference of the ring in android

I want to create a customized progress bar in which a circular ring is there and a circular ball(blob) has to rotate through the circumference of the ring whenever there the progress state changes. ...
1
vote
1answer
34 views

Rotate GameObject towards Line

Goal: Given two 3D vectors, rotate a box, that's being spawned in between both vectors Vector3.Lerp(A, B, 0.5f), so that it's aligned with the line defined by the vertices. The "box" itself is ...
0
votes
1answer
33 views

Can't create a quat from euler angles with yaw above 90 glm

Here's some background: I'm working on a game engine and I've recently added a physics engine (physx in this case ). problem is that my transform class uses euler angles for rotation and the physics ...

http://mssss.yulina-kosm.ru