ArcObjects Library Reference (Geometry)  

IVector Interface

Provides access to vector properties and operations.

Product Availability

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

Description

A general vector interface containing functions to manipulate vectors in an arbitrary number of dimensions.  Contains basic vector characteristics including Dimension and Magnitude as well as general vector operations including Normalization, scalar nultiplication, Vector Addition, Vector Subtraction, Vector Dot Product, and Vector Cross Product.  To access methods specific to 3D Vectors, use the IVector3D interface.

Members

Description
Method AddVector Construct a new vector by adding a different vector to this vector.
Read/write property ComponentByIndex The component corresponding to a given index.
Method ConstructAddVector Set this vector by adding two input vectors.
Method ConstructSubtractVector Set this vector by subtracting the second input vector from the first one.
Read-only property Dimension The dimension of this vector.
Method DotProduct Returns the dot product of this vector and another vector.
Read-only property IsEmpty Indicates if the vector is empty (unset).
Read/write property Magnitude The length of the vector.
Method Normalize Normalize the vector (scale it to magnitude = 1).
Method Scale Scale the vector by the given factor.
Method SetEmpty Makes the vector empty (unset).
Method SubtractVector Construct a new vector by subtracting a different vector from this vector.

CoClasses that implement IVector

CoClasses and Classes Description
Vector3D A 3D vector containing dx, dy, and dz components.