Vector2d Object
Description
The Vector2d object. For more information, see the
Transient Geometry overview.
Methods
| AddVector |
Add the specified vector2d to this vector2d. |
| AngleTo |
Determines the angle between this vector2d and the specified vector2d. |
| AsUnitVector |
Get the unit vector2d equivalent of this vector2d normalized. |
| Copy |
Creates a copy of this Vector2d object. The result is entirely independent and can be edited without affecting the original Vector2d object. |
| DotProduct |
Determine the dot product of this vector2d to the specified vector2d. |
| GetVectorData |
Get the data defining this vector. |
| IsEqualTo |
Compare this vector2d for equality to the specified vector2d. |
| IsParallelTo |
Determine if this vector2d is parallel to the specified vector2d. |
| IsPerpendicularTo |
Determine if this vector2d is perpendicular to the specified vector2d. |
| Normalize |
Normalize this vector2d to result in a length equal to 1.0. |
| PutVectorData |
Method that sets the data defining this vector. |
| ScaleBy |
Scale this vector2d by the specified scale factor. |
| SubtractVector |
Subtract the specified vector2d from this vector2d. |
| TransformBy |
Transform this vector2d by the specified matrix. |
Properties
| Length |
Get the length of this vector2d. |
| X |
Gets the X-component for this Vector2d. |
| Y |
Gets the Y-component for this Vector2d. |
Accessed From
EllipseFull2d.MajorAxisVector,
Matrix2d.GetCoordinateSystem,
Matrix2d.Translation,
Point2d.VectorTo,
TransientGeometry.CreateVector2d,
UnitVector2d.AsVector,
Vector2d.Copy
Samples
| Move sketch entities |
This sample demonstrates the translation of all the objects on the active sketch by a certain distance. |
Version
Introduced in version 4