Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. initial_orientation = 1.00000, 0.00000, 0.00000
  2. initial_rotation = -1.39626, -4.71239, 0.00000
  3.  
  4. new_rotation = -1.94626, -4.71239, 0.00000
  5.  
  6. 'initial_rotation' - 'new_rotation' = 'rotation_difference'
  7.  
  8. initial_rotation = -1.39626, -4.71239, 0.00000
  9. new_rotation = -1.94314, -4.71239, 0.00000
  10.  
  11. rotation_difference = -0.54687, 0.00000, 0.00000
  12.  
  13. rotation_matrix = SharpDX.Matrix.RotationYawPitchRoll(rotation_difference.Y, rotation_difference.X, rotation_difference.Z);
  14.  
  15. rotation_matrix = 1.00000, 0.00000, 0.00000, 0.00000
  16. 0.00000, 0.85415, -0.52002, 0.00000
  17. 0.00000, 0.52002, 0.85415, 0.00000
  18. 0.00000, 0.00000, 0.00000, 1.00000
  19.  
  20. vector = SharpDX.Vector3.TransformCoordinate(initial_orientation, rotation_matrix);
  21.  
  22. vector = 1.00000, 0.00000, 0.00000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement