Showing posts with label vectors. Show all posts
Showing posts with label vectors. Show all posts

Tuesday, May 30, 2017

Angle between two vectors in 3D

Angle between two vectors in 3D
Usage:

a=[10,0,0];
b=[0,10,0];
echo(angle(a,b));
function angle (a,b)=atan2(norm(cross(a,b)),a*b);