ArcObjects Library Reference (Geometry)  

IVector.DotProduct Method

Returns the dot product of this vector and another vector.

[Visual Basic .NET]
Public Function DotProduct ( _
    ByVal otherVector As IVector _
) As Double
[C#]
public double DotProduct (
    IVector otherVector
);
[C++]
HRESULT DotProduct(
  IVector* otherVector,
  double* result
);
[C++]

Parameters

otherVector

  otherVector is a parameter of type IVector

result [out, retval]   result is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Returns a double representing the Dot Product of the base vector and the input vector.  The Dot Product is the sum of multiplying corresponding components of each vector.

See Also

IVector Interface