Is this how it should be done (rotating vector x around vector z for alpha degrees):(adsbygoogle = window.adsbygoogle || []).push({});

assumes |x|*|z|<>0

xonz=(scalar_product(z,x)/(|x|*|z|))*z;

y=x-xonz;

assumes |x|<>0

result=cos(alpha)*x+sin(aplha)*(|y|/|x|)*y;

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Rotating vector x around vector z

Loading...

Similar Threads - Rotating vector around | Date |
---|---|

B Complex products: perpendicular vectors and rotation effects | Dec 17, 2017 |

I What is the rotation basis? | Mar 30, 2016 |

Spherical vectors and rotation of axes | Jan 2, 2016 |

Vector Rotation About Arbitrary Axis | Dec 11, 2015 |

Undoing a rotation: determination of origin required to rotate a vector B to equal A | Jul 24, 2012 |

**Physics Forums - The Fusion of Science and Community**