# Question about axis in FVector::RotateAngleAxis

**URL:** <https://forums.unrealengine.com/t/question-about-axis-in-fvector-rotateangleaxis/360646>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 13, 2016, 6:12pm UTC](https://forums.unrealengine.com/t/question-about-axis-in-fvector-rotateangleaxis/360646 "2016-06-13T18:12:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robbiecooper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@robbiecooper](https://forums.unrealengine.com/u/robbiecooper)\
**Post date:** [June 13, 2016, 6:12pm UTC](https://forums.unrealengine.com/t/question-about-axis-in-fvector-rotateangleaxis/360646/1 "2016-06-13T18:12:46Z")

</div>

Hi All

I have a question about this function. (The BP equivalent is RotateVectorAroundAxis node, so if you’ve used that, you’d probably also have a valid insight!)

I have a location in space that I want to rotate my pawn around. If I’m going, say, right to left, using the mouse axis to trigger the rotation, I can first check to see if the input is plus or minus, then rotate in that direction. The “axis”, in that case is vertical, because we’re not looking to move up or down, just right or left. How is that expressed in x, y, z? The point in space that I want to rotate around has all 3 value’s, obviously. Do I need to remove or ignore values from this vector?

I hope this question makes sense!

thanks

---

<div class="post-metadata">

**Author:** ![robbiecooper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@robbiecooper](https://forums.unrealengine.com/u/robbiecooper)\
**Post date:** [June 14, 2016, 7:08am UTC](https://forums.unrealengine.com/t/question-about-axis-in-fvector-rotateangleaxis/360646/2 "2016-06-14T07:08:57Z")

</div>

After a short diversion into basic linear algebra, found this;

> **[Unit vector](https://en.wikipedia.org/wiki/Unit_vector)**
>
> In mathematics, a unit vector in a normed vector space is a vector (often a spatial vector) of length 1. A unit vector is often denoted by a lowercase letter with a circumflex, or "hat", as in 
>   
>     
>       
>         
>           
>             
>               
> v
>               
> ^
>             
>           
>         
>       
>     
> {\\displaystyle {\\hat {\\mathbf {v} }}}
>   
> (pronounced "v-hat").
> The term direction vector is used to describe a unit vector being used to represe...

So I’m assuming that the axis is a unit vector.
