---
title: "Discussion on \"Rotation of a vector in Python\" | Hashnode"
description: "Discussion on \"Rotation of a vector in Python\". If you want to rotate a 3D vector around a particular axis, take advantage of matrix transformations instead of element wise (like you have written above). Below is code to rotate a 3-D vector around any axis:\nimport numpy as np\nimport matplotlib.pyp..."
url: "https://hashnode.com/posts/rotation-of-a-vector-in-python/62eeed55e3a3793580e01767"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Rotation of a vector in Python](https://nikhilrao.blog/rotation-of-a-vector-in-python?utm_source=hashnode&utm_medium=feed)

If you want to rotate a 3D vector around a particular axis, take advantage of matrix transformations instead of element wise (like you have written above). Below is code to rotate a 3-D vector around any axis: import numpy as np import matplotlib.pyp...

Aug 6, 2022 · 1 min read · nikhilrao.blog  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#numpy](https://hashnode.com/tag/numpy)
-   [#matplotlib](https://hashnode.com/tag/matplotlib)
-   [#matrix](https://hashnode.com/tag/matrix)
-   [#rotation](https://hashnode.com/tag/rotation)

## Written by

[Nikhil Rao](https://hashnode.com/@nrao57)

@nrao57

  
[View profile](https://hashnode.com/@nrao57)

Data Engineer

Los Angeles

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
