Home > @jsplumbtoolkit/browser-ui > perpendicularLineTo
perpendicularLineTo() function
Calculates a line of length length
that is perpendicular to the line from fromPoint
to toPoint
and passes through toPoint
.
Signature:
export declare function perpendicularLineTo(fromPoint: PointXY, toPoint: PointXY, length: number): LineXY;
Parameters
Parameter | Type | Description |
---|---|---|
fromPoint | PointXY | First point |
toPoint | PointXY | Second point |
length | number | Length of the line to generate |
Returns:
Perpendicular line of the required length.