Julia Programming Language
How to find angle between two vectors?
General Usage
linearalgebra
Oscar_Smith
September 14, 2021, 1:40pm
2
The easiest way would be
function angle(a, b) return acosd(clamp(a⋅b/(norm(a)*norm(b)), -1, 1)) end
3 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
LinearAlgebra: unstable floating point operations?
New to Julia
10
1376
July 18, 2022
[ANN] AngleBetweenVectors
Community
package
,
announcement
5
909
July 30, 2018
Is atan2 in the base?
New to Julia
8
11476
May 2, 2019
Should there be a native angle type?
Internals & Design
proposal
,
unitful
32
3490
July 10, 2017
Angle package
Community
package
,
announcement
28
3660
July 14, 2017