Share

UnitVector Object


Description

The UnitVector object. For more information, see the Transient Geometry overview.

Methods

Name Description
AngleTo Determines the angle between this vector and the specified vector.
AsVector Get the vector equivalent of this unit vector.
Copy Creates a copy of this UnitVector object. The result is entirely independent and can be edited without affecting the original UnitVector object.
CrossProduct Determine the cross product between this vector and the specified vector.
DotProduct Determine the dot product of this vector to the specified vector.
GetUnitVectorData Get the data defining this unit vector.
IsEqualTo Compare this unit vector for equality to the specified unit vector.
IsParallelTo Determine if this vector is parallel to the specified vector.
IsPerpendicularTo Determine if this vector is perpendicular to the specified vector.
PutUnitVectorData Method that sets the data defining this unit vector.
TransformBy Transform this vector by the specified matrix.

Properties

Name Description
X Specifies the X coordinate of the vector. If not supplied, the X value will default to 0.
Y Specifies the Y coordinate of the vector. If not supplied, the Y value will default to 0.
Z Specifies the Z coordinate of the vector. If not supplied, the Z value will default to 1.

Accessed From

Arc3d.Normal, Arc3d.ReferenceVector, AssemblyWorkAxisDef.Axis, AssemblyWorkAxisDef.GetData, AssemblyWorkPlaneDef.GetData, AssemblyWorkPlaneDef.XAxis, AssemblyWorkPlaneDef.YAxis, BIMCableTrayConnectorDefinition.Direction, BIMCableTrayConnectorDefinition.HeightDirection, BIMCableTrayConnectorDefinition.WidthDirection, BIMConduitConnectorDefinition.Direction, BIMConnectorDefinition.Direction, BIMDuctConnectorDefinition.Direction, BIMDuctConnectorDefinition.HeightDirection, BIMDuctConnectorDefinition.WidthDirection, BIMElectricalConnectorDefinition.Direction, BIMPipeConnectorDefinition.Direction, Camera.UpVector, Circle.Normal, Cone.AxisVector, CoreCavityDefinition.PullDirection, Cylinder.AxisVector, DWGArc.Normal, DWGArcProxy.Normal, DWGEllipticalArc.Normal, DWGEllipticalArcProxy.Normal, DWGLine.Direction, DWGLineProxy.Direction, EllipseFull.Normal, EllipticalArc.MajorAxis, EllipticalArc.MinorAxis, EllipticalCone.AxisVector, EllipticalCylinder.AxisVector, FixedWorkAxisDef.Axis, FixedWorkAxisDef.GetData, FixedWorkPlaneDef.GetData, FixedWorkPlaneDef.XAxis, FixedWorkPlaneDef.YAxis, GraphicsNormalSet.Normal, GroundPlaneSettings.FrontDirection, GroundPlaneSettings.UpDirection, Line.Direction, LineSegment.Direction, MoldDefinition.PullDirection, Plane.Normal, PointCloudPlane.GetPlaneRectangle, PointCloudPlaneProxy.GetPlaneRectangle, PresentationTweak.GetRotationData, SketchEllipse3D.MajorAxisVector, SketchEllipse3DProxy.MajorAxisVector, SketchEllipticalArc3D.MajorAxisVector, SketchEllipticalArc3DProxy.MajorAxisVector, SketchSplineHandle3D.Tangent, SketchSplineHandle3DProxy.Tangent, Torus.AxisVector, TransientGeometry.CreateUnitVector, UnitVector.Copy, UnitVector.CrossProduct, Vector.AsUnitVector, WorkPlane.GetPosition, WorkPlaneProxy.GetPosition

Samples

Name Description
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 curve primitives This sample demonstrates the creation of curve primitives (lines, arcs, circles, etc.) using client graphics.

Version

Introduced in version 4

Was this information helpful?