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

Rotation matrix by yaw

I want to set the yaw of a rotation matrix so an object points to a specific position using this code Vector3 dist = transform().position() - mPlayerTarget; transform().rotationZ(atan2(dist.x(), dist.y())); This would produce the right results,…
cboe
  • 469
  • 1
  • 9
  • 25
0
votes
2 answers

Java // Array // Multiplication // For-loop;

Objective: Produce rotation using the rotation matrix; private double[][] rotateX = {{1.00,0.00,0.00},{0.00,Math.cos(theta),Math.sin(-theta)},{0.00,Math.sin(theta),Math.cos(theta)}}; // Rotation matrice for x axis; Problem definition: Output does…
e.doroskevic
  • 2,129
  • 18
  • 25
0
votes
0 answers

Java // Rotation matrices // 3D [ x,y,z ] // Point about the origin;

Intro I have been researching this topic for a while, however do not entirely grasp it. I have looked on stackoverflow as well as other on-line resources for an example, but couldn't find a fairly similar problem to refer to. Any help would be very…
e.doroskevic
  • 2,129
  • 18
  • 25
0
votes
1 answer

Weird First Person Camera Rotations XNA

I'm trying to create an First Person View camera in XNA 4.0. I got the camera working and my scene renders fine. My movement with the W, A, S, D works fine as well but I cannot figure out why my Mouse rotations are messed up. When I try to look Up…
Brandon
  • 22,723
  • 11
  • 93
  • 186
0
votes
1 answer

Converting a local rotation to a global one (matrices)

[C++] {DirectX 9} TL;DR: How do I convert a float representing local Rotation in the X axis into global yaw/pitch/roll using Matrices? So I'm writing a little game in which the player is represented as an axe mesh. The player's view rotates…
0
votes
0 answers

Calculate rotation matrix offset

we are working on a virtual reality environment with a HMD and have continous tracker data coming as quaternions. We calculate a roatation Matrix from that and let OpenGL do the rest. Now we want to set a certain direction in the beginning, meaning…
refuzee
  • 408
  • 4
  • 15
0
votes
1 answer

How does the rotation angle using a rotation matrix correspond to a degree

I am trying to rotate a box in java using a rotation matrix. (I am using the LWJGL and Slick 2D libraries) my code to rotate 1 point around the center point is this: point1X = (float) (centerX * Math.cos(rotation) - centerY *…
Harrison
  • 688
  • 7
  • 15
0
votes
2 answers

Rotating matrices in simulink

I want to create in Simulink, a homogenous matrix in order to simulate the rotation and translation of an object in space. How can I create a 4x4 matrix which will take as input the angle given? For example a translation across the X axes combined…
Spyros
  • 289
  • 1
  • 6
  • 20
0
votes
1 answer

rotating collection of spheres with respect to the z-axis

I have coordinates (x,y,z) of the center of spheres stored in a numpy array. I want be able to rotate the spheres with respect to the z-axis but am getting weird results. My code does the rotation but it seems to also be moving it up and right.…
still learning
  • 157
  • 2
  • 14
0
votes
1 answer

How to use sensors rotation matrix in min3d to rotate parsed object

I want to rotate objects parsed from .obj file in min3d. I need to use a rotation matrix got from sensors. I know how to do this in pure OpenGL but I can't figure out what to use (min3d.core.Renderer probably?) and how in min3d. I like min3d and it…
0
votes
2 answers

Rotation matrix - rotate a ball around a rotating box

I've a 3D box: center point = (a,b,c), width = w, height = h, depth = d. the center point isn't the origin. I have a ball on the box(touch each other), its center and radius. I can rotate the box(around the X axis but its center STAYS the same..)…
Maor Cohen
  • 936
  • 2
  • 18
  • 33
0
votes
0 answers

how to rotate a 3d point

this may be a silly question. but I just want to make sure. Given a 3d point p (x,y,z), and the rotation matrix R. what is the coordinate of p after rotation R? is it R*P? I did an experiment and found it does not give the results as I…
Tao Hu
  • 57
  • 1
  • 9
0
votes
1 answer

Divide et impera for matrices rotating

I have tried to solve the 2nd problem b and d subproblems from this exercise: http://courses.engr.illinois.edu/cs473/sp2010/homework/hw1.pdf I solved the b to the following way: My first question is that: Is my solution correct for the problem…
0
votes
0 answers

Inverting rotation matrix swaps pitch and roll

I've got rotation matrix from TYPE_ROTATION_VECTOR vector values. and tried to use it to rotate an object in my app. Worked fine. But what I really want is to rotate an object opposite to the direction of device's movement. Say, device is rotated…
Nazerke
  • 2,098
  • 7
  • 37
  • 57
0
votes
1 answer

C# rotating a matrix

I am writing a C# program that has a cube object that allows the user to move it in the x y and z axis. However i want them to be able to rotate it aswell. My matrix is defined as so: public double[, ] matrix = new double[4, 4]; So for example i was…
user667430
  • 1,487
  • 8
  • 38
  • 73
1 2 3
24
25