How to find angle between two vectors?

The easiest way would be

function angle(a, b)
    return acosd(clamp(a⋅b/(norm(a)*norm(b)), -1, 1))
end
3 Likes