Function: orderQuad()
orderQuad(
quad):Quad
Defined in: extensions/cv/ops/quad.ts:80
Reorders a quad's corners into the top-left, top-right, bottom-right, bottom-left order the rest of this module assumes, using their coordinate-sum and coordinate-difference extremes.
Parameters
quad
The quad whose corners may be in any order.
Returns
The same corners, ordered TL, TR, BR, BL.