| MATLAB Central > MATLAB Newsreader > sort 2D points in counter- clockwise way |
|
|
|
Subject: sort 2D points in counter- clockwise way From: Ahmad Date: 27 Jul, 2008 06:35:03 Message: 1 of 7 |
|
Is there a quick way to order points in a counter-clockwise |
|
Subject: sort 2D points in counter- clockwise way From: Bruno Luong Date: 27 Jul, 2008 07:31:02 Message: 2 of 7 |
|
"Ahmad " <ahmad.humyn@gmail.com> wrote in message |
|
Subject: sort 2D points in counter- clockwise way From: Bruno Luong Date: 27 Jul, 2008 07:44:02 Message: 3 of 7 |
|
|
|
Subject: sort 2D points in counter- clockwise way From: Matt Date: 27 Jul, 2008 16:43:05 Message: 4 of 7 |
|
> Oh....and the polygon is not necessarily regular |
|
Subject: sort 2D points in counter- clockwise way From: Z Date: 26 Jun, 2009 22:22:01 Message: 5 of 7 |
|
If you only want them to be counter-clock wise, why not convert the [x,y] point to polar coordinate and sort them by angle? |
|
Subject: sort 2D points in counter- clockwise way From: Bogdan Dzyubak Date: 26 Jan, 2012 17:02:10 Message: 6 of 7 |
|
Thanks, Z. Simple and elegant. |
|
Subject: sort 2D points in counter- clockwise way From: MrWong Date: 7 Mar, 2013 07:51:07 Message: 7 of 7 |
|
"Bogdan Dzyubak" <illan7@gmail.com> wrote in message <jfs0ui$s62$1@newscl01ah.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
