Returns the dot product of two vectors.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static T DotProduct<T>(
this Vector<T> left,
Vector<T> right
)
<ExtensionAttribute>
Public Shared Function DotProduct(Of T) (
left As Vector(Of T),
right As Vector(Of T)
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T DotProduct(
Vector<T>^ left,
Vector<T>^ right
)
[<ExtensionAttribute>]
static member DotProduct :
left : Vector<'T> *
right : Vector<'T> -> 'T
Parameters
- left
- Type: Extreme.MathematicsVectorT
The first vector. - right
- Type: Extreme.MathematicsVectorT
The second vector.
Type Parameters
- T
Return Value
Type:
TA real number that is the dot product of the
two vectors.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
VectorT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Reference