UnitVector2d Object
Description
The UnitVector2d object. For more information, see the
Transient Geometry overview.
Methods
| AngleTo |
Determines the angle between this unit vector2d and the specified unit vector2d. |
| AsVector |
Get the vector2d equivalent of this unit vector2d. |
| Copy |
Creates a copy of this UnitVector2d object. The result is entirely independent and can be edited without affecting the original UnitVector2d object. |
| DotProduct |
Determine the dot product of this unit vector2d to the specified unit vector2d. |
| GetUnitVectorData |
Get the data defining this unit vector. |
| IsEqualTo |
Compare this unit vector2d for equality to the specified unit vector2d. |
| IsParallelTo |
Determine if this unit vector2d is parallel to the specified unit vector2d. |
| IsPerpendicularTo |
Determine if this unit vector2d is perpendicular to the specified unit vector2d. |
| PutUnitVectorData |
Method that sets the data defining this unit vector. |
| TransformBy |
Transform this unit vector2d by the specified matrix. |
Properties
| X |
Gets the X-component for this UnitVector2d. |
| Y |
Gets the Y-component for this UnitVector2d. |
Accessed From
Centermark.ExtensionPointFourDirection,
Centermark.ExtensionPointOneDirection,
Centermark.ExtensionPointThreeDirection,
Centermark.ExtensionPointTwoDirection,
EllipticalArc2d.MajorAxis,
Line2d.Direction,
LineSegment2d.Direction,
SketchEllipse.MajorAxisVector,
SketchEllipseProxy.MajorAxisVector,
SketchEllipticalArc.MajorAxisVector,
SketchEllipticalArcProxy.MajorAxisVector,
SketchSplineHandle.Tangent,
SketchSplineHandleProxy.Tangent,
TransientGeometry.CreateUnitVector2d,
UnitVector2d.Copy,
Vector2d.AsUnitVector
Samples
| Offset a 2D sketch |
This sample demonstrates the creation of offsets in 2d sketches. Two ways of creating the offset are shown - one uses a distance and the other uses the input point. |
| Create sketch elliptical arc |
This sample demonstrates creating an elliptical arc in a sketch and dimensioning its minor radius. |
Version
Introduced in version 4