Sorts 4 quadrilateral corner vertices into standard Top-Left (TL),
Top-Right (TR), Bottom-Right (BR), and Bottom-Left (BL) ordering.
Arguments
- pts
A 4x2 matrix, data frame with 2 columns, list with TL, TR, BR, BL,
or an 8-element numeric vector.
Value
A named list with $TL, $TR, $BR, $BL coordinates (numeric pairs c(x, y)).