MapWinGIS:Vector Dot

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

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

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Vector_Dot"

This page has been accessed 1,295 times. This page was last modified on 9 November 2005, at 17:15.