MapWinGIS:Vector Dot
From MapWindow GIS
Dot
Calculates the dot product of the current vector object with the specified vector.
VB.NET Usage
Function Dot(V As MapWinGIS.Vector) As Double
Parameters
|
V | The vector to use to calculate the dot product with the current vector object. |
| ReturnValue | The dot product of the current vector object and the specified vector. |
Sample Code
Private Sub VectorDotProduct()
Dim vector As New MapWinGIS.Vector(), vector2 As New MapWinGIS.Vector()
Dim dotproduct As Double
'Get the dot product of vector and vector2
dotproduct = vector.Dot(vector2)
End Sub
VB 6 Usage
Function Dot(V As Vector) As Double
Parameters
|
V | The vector to use to calculate the dot product with the current vector object. |
| ReturnValue | The dot product of the current vector object and the specified vector. |
Sample Code
Private Sub VectorDotProduct()
Dim vector As New MapWinGIS.vector, vector2 As New MapWinGIS.vector
Dim dotproduct As Double
'Get the dot product of vector and vector2
dotproduct = vector.Dot(vector2)
End Sub
















