# Axes Direction Cosines - please help

**URL:** https://discourse.vtk.org/t/axes-direction-cosines-please-help/8094
**Category:** Support
**Created:** [March 20, 2022, 7:40pm UTC](https://discourse.vtk.org/t/axes-direction-cosines-please-help/8094 "2022-03-20T19:40:38Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![jamsoft](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/97f17d/32.png) [@jamsoft](https://discourse.vtk.org/u/jamsoft)
#### Post date: [April 3, 2022, 11:05am UTC](https://discourse.vtk.org/t/axes-direction-cosines-please-help/8094/8 "2022-04-03T11:05:03Z")

</div>

Dear Paulo,

thank you for your helpful advices. In the end, I rotate slices using vtkTransform and vtkMatrix4x4. It change the cosines matrix by more comfortable way, But, your advice and link to Wolfram-Alpha are very helpful for me. I’ve learned many new things. Thank you once more!

Now, I need to solve another problem with the slice position. I’ve created separate thread: [https://discourse.vtk.org/t/problem-with-the-vtkimagereslice-position-help-please/8202](https://discourse.vtk.org/t/problem-with-the-vtkimagereslice-position-help-please/8202)

Have a nice days,

Jirka

---

_[View the full topic](https://discourse.vtk.org/t/axes-direction-cosines-please-help/8094)._
