AngleTo Method


XYZ Angle To Method

Returns the angle between this vector and the specified vector.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public double AngleTo(
	XYZ source
)

Parameters

source XYZ
The specified vector.

Return Value

Double
The real number between 0 and PI equal to the angle between the two vectors in radians..
Exceptions
Exception Condition
ArgumentNullException Thrown when source is .
Remarks
The angle between the two vectors is measured in the plane spanned by them.
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 →