API Documentation > CorelDRAW > 2025-v26
IVGVector interface
The main interface for Vector class
Syntax:
Interface IVGVector
Properties:
Name Description
Angle Gets or sets the angle of the vector in degrees counter clockwise from the x axis
Length Gets or sets the length of the vector
x Gets or sets the vector's x position
y Gets or sets the vector's y position
Methods:
Name Description
Add Adds a vector to this vector
AngleBetween Gets the angle between this vector to another vector in degrees counter clockwise
BindToDocument Binds the vector to a document which makes it use the coordinates in the document's coordinate system
CrossProduct Gets cross product of two vectors
DotProduct Gets dot product of two vectors
GetCopy Returns a copy of the vector
GetOffsettedPoint Get a point offsetted off of the vector
MultiplyBy Multiply the vector length by a scaler
Negate Negates this vector
Normalize Normalizes the vector length
ProjectOnto Returns this vector projected onto another vector
SetFromPoints Sets the vector from two points
SmallAngleBetween Gets the small angle between this vector to another vector in degrees
Subtract Subtracts a vector from this vector