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

Dot() public method

Calculates the 2 dimensional dot-product of 2 vectors, which is equal to the cosine of the angle between the vectors, times the lengths of each of the vectors. A.Dot(B) == |A| * |B| * cos(fi)
public Dot ( Vector2 vector ) : Real
vector Vector2
return Real
		public Real Dot( Vector2 vector )
		{
			return this.x * vector.x + this.y * vector.y;
		}