LinkShapeGeometry.CalculateRotationAngle(PointD, PointD) Method

Definition

Calculates the rotation angle of a link shape's decorator.

public:
 float CalculateRotationAngle(Microsoft::VisualStudio::Modeling::Diagrams::PointD pt1, Microsoft::VisualStudio::Modeling::Diagrams::PointD pt2);
public float CalculateRotationAngle (Microsoft.VisualStudio.Modeling.Diagrams.PointD pt1, Microsoft.VisualStudio.Modeling.Diagrams.PointD pt2);
member this.CalculateRotationAngle : Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> single
Public Function CalculateRotationAngle (pt1 As PointD, pt2 As PointD) As Single

Parameters

pt1
PointD

The endpoint of the line that contains the decorator.

pt2
PointD

The other endpoint of the line.

Returns

The rotation angle of a link shape's decorator.

Applies to