AngleBetweenThreePoints


Measures the angle defined by three consecutive points.

Syntax

C++
Python
 
def AngleBetweenThreePoints(
	inPoint1: Point2D,
	inPoint2: Point2D,
	inPoint3: Point2D,
	/,
	*,
	inRotationDirection: RotationDirection = RotationDirection.Clockwise,
	outArc: Arc2D | None = None
)
-> (
	outAbsoluteAngle: float,
	outDirectedAngle: float
)

Parameters

Name Type Default Description
Input value inPoint1 Point2D A point on one arm of an angle
Input value inPoint2 Point2D The middle point
Input value inPoint3 Point2D A point on another arm of the angle
Input value inRotationDirection RotationDirection RotationDirection.Clockwise Chooses one of two ways of measuring the angle
Output value outAbsoluteAngle float Angle value used for measurements <0; 360>
Output value outDirectedAngle float Angle value used for clockwise transformations <-360; 360>
Output value outArc Arc2D | None None Angle visualization object