• Calculates a line of length length that is perpendicular to the line from fromPoint to toPoint and passes through toPoint.

    Parameters

    • fromPoint: PointXY

      First point

    • toPoint: PointXY

      Second point

    • length: number

      Length of the line to generate

    Returns LineXY

    Perpendicular line of the required length.