AngleTo Method


Returns the angle between this vector and the specified vector.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public double AngleTo(
	UV source
)
Visual Basic
Public Function AngleTo ( _
	source As UV _
) As Double
Visual C++
public:
double AngleTo(
	UV^ source
)

Parameters

source
Type: Autodesk.Revit.DBUV
The specified vector.

Return Value

The real number between 0 and 2*PI equal to the angle between the two vectors in radians.

Remarks

The angle is measured counterclockwise.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException Thrown when source is a null reference (Nothing in Visual Basic).

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →