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.
rotation
12,086
questions
0
votes
1
answer
11
views
How is VisionOS RealityKit calculating it's rotation (roll pitch yaw)?
Problem
Apple has an object for tracking the wrist such as anchor.originFromAnchorTransform and on this object, there is a rotation field that is protected so I can't access it, but it gets printed if ...
-2
votes
0
answers
14
views
Point not rotating around centre correctly [duplicate]
When trying to make a vehicle simulation, the hitch point for the trailer needs to be rotated with the tractor, however it does not seem to be working and the hitch point is too far away from the ...
0
votes
0
answers
31
views
how to change the size of rect that can rotate in canvas with wpf [closed]
I have written a rectangular user control, which contains a large rectangle inside the control. At the four vertices of the rectangle, there are four small rectangles used to control the width and ...
0
votes
0
answers
14
views
Image flip when applying quaternion ways of rotation
Recently, I wrote some code using quaternion to avoid gimbal lock when applying roll modification to a certain rotation represented by Euler angles in "ZXY" order and intrinsic ways.
The ...
1
vote
1
answer
21
views
I am having a hard time getting an object to rotate and move in the object's new forward direction
Why is my player still moving forward(north) in world coordinates? I want the player to face and move in a new direction. Please explain in simple terms.
void PlayerMover()
{
_step = _speed * ...
0
votes
0
answers
23
views
Next auth refresh token rotation: the refresh token gets expired when changing tabs in a NextAuth.js application
Next auth refresh token rotation:the refresh token gets expired when changing tabs in a NextAuth.js application.This is[...nextauth] auth - options.ts Any idea about the issue?
**What could be the ...
1
vote
5
answers
78
views
In C#, I'm trying to iterate strings in single loop, how?
I'm trying to achieve this output:
LOWEST LOW MEDIUM HIGH HIGHEST HIGHEST HIGH MEDIUM LOW LOWEST
I know there are many ways to do it, but I'm trying it in single loop, is it achievable?
My code is ...
0
votes
0
answers
27
views
Unable to map rotations of an ellipse onto a different point
I wrote a program that creates an ellipse made of a series of points that can be rotated by an angle, psi, in the xy plane. I am using a rotation matrix to rotate the ellipse.
angle = linspace(0, ...
3
votes
2
answers
100
views
How to create a draggable and rotatable box in Jetpack Compose?
I'm working on a Jetpack Compose application and I want to create a Box that can be both dragged and rotated using mouse interactions. I should be able to click and drag the entire Box to move it ...
1
vote
1
answer
44
views
Function to rotate a quaternion by the given amount
class quaternion:
__slots__ = ("x", "y", "z", "w")
def __init__(self, x: float, y: float, z: float, w: float):
self.x = x
self.y = y
...
0
votes
0
answers
30
views
Conversion between euler and quaternion rotation produces incorrect results when using multiple angles
I'm trying to apply a previous answer to my code, I double-checked it on multiple sites where others came up with the same algorithm independently, but no matter which version I use I can't get the ...
0
votes
0
answers
87
views
How do I rotate or translate an object at the mouse position in a vtk environment?
I would like to rotate or translate an object that look like a cylinder by pressing the left button of the mouse on it.
to rotate, i would like to click on the tip and make it rotate around the other ...
1
vote
2
answers
83
views
Rotating a vector field in an efficient way in python
I need to rotate a 3D vector field by 90 degrees. I do that by first using the NumPy function rot90 (see the docs here). Then I rotate each component at each position in a very inefficient way: using ...
3
votes
1
answer
164
views
How do you represent quaternion rotations in 2 dimensions?
I'm developing in Android Studio Java with two Bluetooth IMUs that give quaternions. The sensors are oriented in the following way to start:
In the image shown, this is considered the “zero” position....
1
vote
1
answer
43
views
Getting Smooth Response between Horizontal Snapping
I currently implemented so that my Character leans in the direction he is walking on Horizontal Layer. So if he presses 'D' he leans to the right and 'A' he leans to the left.
I got that working, but: ...