MapWindow Home
Search MapWindow.org


  • Home
    • Download
    • Why MW
    • FAQ
    • Contact
  • Products
    • MapWindow
    • ActiveX
    • Plug-ins
  • Software Dev
    • Sample Code
    • Scripts
    • Source
    • Bugs
    • Support
    • Languages
  • Site Tools
    • Forums
    • Tutorials
    • Mailing Lists
    • Team
    • Site Stats
    • Links
  • Get Stuff
    • Buy a CD
    • Buy a T-Shirt
    • MW Book
    • ActiveX Book
    • Donate
    • Buy Support
  • Documentation
    • MWGIS App. User Guide
    • GISTools User Guide
    • MW Plug-ins Dev. Guide
    • MWGIS ActiveX Dev. Guide
    • MWGeoProc Dev. Guide

MapWinGeoProc:Topology2D:Vector

From MapWindow GIS

Jump to: navigation, search

Vector

Summary

Contains a magnitude and direction Supports more fundamental calculations than Segment, rather than topological functions

Fields

X The X component of the vector
Y The Y component of the vector

Methods

AddVectors Adds the vectors U and V using vector addition, which adds the corresponding components
Constructor This function has 6 overloads.
Copy Returns a new instance of the vector class with the same values as this object.
Cross Returns the cross product of this vector with the specified vector V. Given X and Y vectors, this creates a vector in the Z direction, so simply interpret the double value to be positive in the positive Z direction.
CrossProduct Returns the Cross Product of two vectors U and V
DividedBy This function has 2 overloads.
DivideVectors This function has 2 overloads.
Dot Returns the dot product of this vector with V2
DotProduct Returns the Inner Product also known as the dot product of two vectors, U and V
Equals This function has been overriden to compare the vectors in the mathematical sense. If the components of the vector are equal, then this will return true.
GetHashCode Returns a hash code, whatever that is.
Minus Subtracts each element of V from each element of this vector
MultiplyVectors Multiplies each component of vector U by the Scalar value
Plus Adds each of the elements of V to the elements of this vector
SubtractVectors Subtracts Vector V from Vector U
Times This function has 2 overloads.
ToMWPoint A MapWinGIS.Point Representing the tip of the vector, where the beginning of the vector is at the origin ///
ToPoint Assuming the vector starts at the origin of 0,0,0, this function returns a Point representing the tip of the vector.
ToSegment Returns a new segment from this vector, where the StartPoint is 0, 0, 0 and the End Point is the tip of this vector

Operators

Addition Adds the vectors U and V using vector addition, which adds the corresponding components
Division This function has 2 overloads.
Equality Returns true if X and Y coordinates are equal
ExclusiveOr Returns the Cross Product of two vectors U and V
Inequality Returns true if X and Y coordinates are different
Multiply This function has 3 overloads.
Subtraction Subtracts Vector V from Vector U

Back to MapWinGeoProc.Topology2D

Retrieved from "http://www.mapwindow.org/wiki/index.php/MapWinGeoProc:Topology2D:Vector"
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in / create account
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link

Geospatial Software Lab

Copyright © 2008 - MapWindow Open Source Team
( last updated: November 12 2008.)
Home | Donate | Download | MapWindow GIS Desktop | MapWinGIS.ocx | Plug-ins | Contact | Lists | Bugs | Sample Code | Documentation
Code Repository | Open Source License | Discussion Forum | Wiki | Join the Team | Site Statistics | Links