ImageJS
    Preparing search index...

    Function order4Points

    • Sorts 4 points in order =>[top-left,top-right,bottom-right,bottom-left]. Input points must be in clockwise or counter-clockwise order.

      Parameters

      • pts: Point[]

        Array of 4 points.

      Returns Point[]

      Sorted array of 4 points.