Blink.Utilities.VectorMath.angleBetweenVectors C# (CSharp) Method

angleBetweenVectors() public static method

public static angleBetweenVectors ( Vector2 a, Vector2 b ) : float
a Vector2
b Vector2
return float
        public static float angleBetweenVectors(Vector2 a, Vector2 b)
        {
            return (float)Math.Acos(Vector2.Dot(a, b) / (a.Length() * b.Length()));
        }