Sharpex2D.Math.Vector2.Dot C# (CSharp) Method

Dot() public static method

Returns the dot product for the specified vectors.
public static Dot ( Vector2 a, Vector2 b ) : float
a Vector2 The first value.
b Vector2 The second value.
return float
        public static float Dot(Vector2 a, Vector2 b)
        {
            return a.X*b.X + a.Y*b.Y;
        }