Sharpex2D.Math.Vector2.Dot C# (CSharp) 메소드

Dot() 공개 정적인 메소드

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.
리턴 float
        public static float Dot(Vector2 a, Vector2 b)
        {
            return a.X*b.X + a.Y*b.Y;
        }