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

OpenGL matrix multiplication results in odd floating point behavior

I have a basic OpenGL program written in LWJGL for java. I'm just starting to look into rotation matrices after reading up on why it's a bad idea to use pitch, yaw and roll variables. However, as matrices are more difficult to work with, I am…
ApproachingDarknessFish
  • 14,133
  • 7
  • 40
  • 79
0
votes
1 answer

finding difference between two rotation matrices

I am having following problem, I have developed code for converting the large array of euler angles to rotation matrices, my data is phi1,phi and phi2 values like as follows phi1 phi phi2 2 3 5 1 2.2 4.3 3 4 5 .....there are…
rcty
  • 707
  • 3
  • 8
  • 13
0
votes
2 answers

Matrix A that rotates 2D space by an angle 'a' clockwise

The attached image shows the question and my answer. I would appreciate if someone could tell me whether it is correct.
Vetaxili
  • 609
  • 5
  • 12
  • 22
0
votes
1 answer

Get singular variable or degree rotation from RotationMatrix.getValues()

I am using this tutorial: http://mobile.tutsplus.com/tutorials/android/android-sdk-creating-a-rotating-dialer/ Which gives me a rotating dialer based on an image view. However I am trying to extend it by adding functionality. In order to add this…
0
votes
2 answers

GL.Rotate and Matrix4.CreateRotationX different ouputs

I tried to rotate some vertices using different ways of rotation - GL.Rotate, Matrix4.CreateRotationX and Matrix4.RotateX. To my surprise they gave different outputs. Here's the function that creates the three matrices and outputs them to the…
0
votes
2 answers

Rotation around a point

Can anyone help me with this please I want to be able to rotate a 3D object around a stationary 3D object. Well there will be no movement involved as I just want to draw the objects at their locations once the game starts and then they will remain…
heyred
  • 2,031
  • 8
  • 44
  • 89
-1
votes
1 answer

How to make code for sum of 2 integrals in Mathematica

I am trying to quickly solve the following problem: f[r_] := Sum[(((-1)^n (2 r - 2 n - 7)!!)/(2^n n! (r - 2 n - 1)!)) * x^(r - 2*n - 1), {n, 0, r/2}]; Nw := Transpose[Table[f[j], {i, 1}, {j, 5, 200, 1}]]; X1 = Integrate[Nw…
-1
votes
1 answer

How to rotate a vector in 3d space? The co ordinate system is not the global xyz. I have the vector for each of the axis of my coordinate system

I am trying to rotate a vector as shown in the image.The co ordinate system is not the global xyz. I have the vector for each of the axis of my coordinate system.
sangith
  • 1
  • 2
-1
votes
1 answer

Java Rotate 3D Vertices around Y axis

I have a 3D model and I need to rotate its vertices around the Y axis (The axis going straight up in my case). For example lets say i have the vert (3,2,3)(x,y,z) and when i rotate around the Y axis only the x and z's will change. how could I…
-1
votes
2 answers

Rotation Matrix Java

I've been following a tutorial for creating a game engine and when I got to calculating the 3D Rotation matrix I ran into the problem that I believe the matrix isn't being calculated properly. When I try to rotate the matrix by 0 degrees on the x,…
Orren Ravid
  • 560
  • 1
  • 6
  • 24
-1
votes
1 answer

Calculate points in coordinate systems in C++

I have two points on circle. I know degree from center and coordinates of one point. I want find coordinate of the other point. I think need multiply by rotation matrix to find point. How can i do in c++? Is there any function for it?
-2
votes
1 answer

php Array rotation

In these 2 integer arrays, how can you determine if the 2nd array is a rotated version of the 1st array and which php function is needed? Example: Original Array A=[1,2,3,4,5,6,7,8] Rotated Array B=[6,7,8,1,2,3,4,5] In this example, all numbers of…
1 2 3
24
25