Sorting points in clockwise/counter-clockwise order

Revision en1, by EternalFire, 2018-11-29 17:54:19

How to sort points in clockwise/counter-clockwise order efficiently? I use atan2 to get angle created by Ox axis and point but it seems slow and sometimes it causes precision error. Appreciate for any help.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English EternalFire 2018-11-29 17:54:19 257 Initial revision (published)