Click or drag to resize
DigitalRuneVectorFDot Method
Returns the dot product of two vectors.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static float Dot(
	VectorF vector1,
	VectorF vector2
)

Parameters

vector1
Type: DigitalRune.Mathematics.AlgebraVectorF
The first vector.
vector2
Type: DigitalRune.Mathematics.AlgebraVectorF
The second vector.

Return Value

Type: Single
The dot product.
Exceptions
ExceptionCondition
ArgumentNullExceptionvector1 or vector2 is .
ArgumentException The numbers of elements of the two vectors do not match.
Remarks
The method calculates the dot product (also known as scalar product or inner product).
See Also