Home > @jsplumb/util > perpendicularLineTo
#
perpendicularLineTo() functionCalculates 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;
#
ParametersParameter | 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.