Skip to main content

Home > @jsplumbtoolkit/browser-ui > theta

theta() function

Calculates the angle between the two points.

Signature:

export declare function theta(p1: PointXY, p2: PointXY): number;

Parameters

ParameterTypeDescription
p1PointXYFirst point
p2PointXYSecond point

Returns:

number

The angle between the two points.