Questions tagged [rotational-matrices]

Rotational Matrices, also called direction cosine matrices, are matrices that represent a rotation from one coordinate frame to another in Euclidean space.

Rotational Matrices, also called direction cosine matrices, are matrices that represent a rotation from one coordinate frame to another in Euclidean space. They are always square, orthogonal, and include only real elements.

Rotational Matrices can easily be converted to other common rotation representations including and .

373 questions
0
votes
1 answer

Get heading from RotationMatrix in iOS

I receive the RotationMatrix from my CMMotionManager and want to calculate my phone's heading from it, e.g. 38 degrees North (and avoid CLLocationManager), in order to make a more accurate compass: [motionManager…
0
votes
1 answer

Rotation and Translation order issue in openCV with SolvePnP

I have an openGL 3D rendering and a camera looking at a chessboard. The 3D rendering displays a small cross-hair on a 3D rendered chessboard, pointed at by a 3D rendered camera. When the real life camera moves, the cross-hair and 3D camera should…
Grim
  • 81
  • 1
  • 9
0
votes
1 answer

QGraphicsSvgItem positioning after rotation

I encountered a strange issue/feature when I try to rotate a QGraphicsSvgItem object and set a position. Check the following example: I have one .svg for the sake of simplicity that is a blue rectangle. I create two QGraphicsSvgItem using the file…
flatronka
  • 1,061
  • 25
  • 51
0
votes
0 answers

strange loadings matrix after varimax rotation: PCA with prcomp in R

I'm running a PCA using the R function prcomp. This is the function: d2.pca <- prcomp(sel.d2,center = TRUE,scale. = TRUE) So variables are scaled an centered (this always has to be done, right?). This is my original loadings matrix: …
David VR
  • 11
  • 4
0
votes
1 answer

Clone rotation from child and assign it to another child of a different parent in THREE.JS

I have a parent Object containing a child Object var parent1 = new THREE.Object3D(); parent1.rotation.set(1,2,3); scene.add(parent1); var child1= new THREE.Object3D(); child1.rotation.set(0.5,0.1,0.3); parent.add(child1); and another parent…
user3271566
  • 157
  • 1
  • 1
  • 12
0
votes
1 answer

Rotation matrix scales down

I'm trying to build some micro "3d engine" as to understand the basics of this field. Everything works quite fine except for rotations. I use the standard rotation matrices to do this, yet all 3 of the possible rotations not only rotate the points,…
Daquicker
  • 515
  • 2
  • 7
  • 17
0
votes
0 answers

ellipse rotation while not chaging initial appearence

I need to rotate an ellipse such way that it's initial appearance not disturbing. Ex: Ellipse drawn (lying down on X-axis ) ( longer diameter in X-axis shorter distance in Y-axis ) after rotating 90 degrees: My Expected result: longer diameter…
kamalakar
  • 111
  • 3
  • 10
0
votes
1 answer

Gyro angle way off on iOS

When I start the motion manager, keeping the phone basically still in my hand, I get erroneous values for the attitude. To get the rotation value, I use the CMAttitude object: CMDeviceMotionHandler motionHandler = ^(CMDeviceMotion *motion, NSError…
aledalgrande
  • 5,167
  • 3
  • 37
  • 65
0
votes
1 answer

Calculating a rotation matrix using rotate in Matlab

I'm using Matlab 2013a on Windows 7 Pro 64 bit. In 2010 (using a different version of Matlab), I wrote the following code to calculate a 3x3 rotation matrix C=rotate (omega, i, w); R=C*Ro; where omega, i, and w are rotation angles in radians. On…
Ryan
  • 3
  • 1
  • 2
0
votes
2 answers

Matrix rotation/translation/scaling in openGL

I need to write an openGL matrix that rotates a point (x,y,z,w) around a given vector (for example , (1,2,-2)) by a 45 degree angle, how would I do that using matrices multiplication over the identity matrix ? (rotations , scaling, translations...)
user51929
  • 185
  • 1
  • 15
0
votes
1 answer

What is the correct order to use matrices in Opengl?

I have looked on several resources such as this http://antongerdelan.net/teaching/3dprog1/maths_cheat_sheet.pdf I have found out that I am supposed to use column major ordering, the confusion comes in when I discover the answer of this question Why…
DanielCollier
  • 736
  • 2
  • 8
  • 21
0
votes
2 answers

Is there a matlab function that converts a rotation matrix to acceleration vector?

Given some 3 x 3 rotation matrix with some constant acceleration A, I would like to find the component acceleration the three directions, ie, Ax,Ay,Az. Though it's not difficult to just "reinvent the wheel", I am wondering if there's a Matlab…
xiaolingxiao
  • 4,793
  • 5
  • 41
  • 88
0
votes
0 answers

How to flip a rotated rectangle in OpenCV?

I want to flip back a rotated rectangle coming from an already flipped matrix, and do some math on it and get a new rectangle (not rotated). Just changing the x, y coordinates doesn't help, since the calculated rectangle will result in the opposite…
E_learner
  • 3,512
  • 14
  • 57
  • 88
0
votes
1 answer

Why quaternion is defined by [vector,w] why not by [point,w]?

A quaternion rotation defines a point in 3d-space and rotation around the axis of that point. I am trying to understand why quaternion rotation requires a vector and rotation, why not just a 3d point in space and rotation ? eg : In the following…
user2259784
  • 319
  • 1
  • 6
  • 19
0
votes
1 answer

How to compare relative rotation between objects?

I have two objects in 3D space (using OpenGL to render it all) of the same type of a class. These objects store xyz offsets and a rotation matrix representing your standard 4x4 rotational matrix. A stripped down example: class object { float…
morasta
  • 150
  • 1
  • 13