Sorting points according their polar angles

Post about everything you want - even if it is not related to programming or this site.

Moderator: Board moderators

Post Reply
Shahidul.CSE
Experienced poster
Posts: 148
Joined: Sun Jul 13, 2014 4:32 am
Location: Rangpur, Bangladesh

Sorting points according their polar angles

Post by Shahidul.CSE » Tue Dec 23, 2014 5:54 pm

Code: Select all

solved using atan2
Last edited by Shahidul.CSE on Thu Dec 25, 2014 12:11 pm, edited 2 times in total.
Md. Shahidul Islam
Dept. of CSE at Begum Rokeya University, Rangpur, Bangladesh
UVa id: http://uhunt.felix-halim.net/id/438420
My facebook account,
Email me: shahidul.cse.brur@gmail.com

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: Sorting points according their polar angles

Post by brianfry713 » Tue Dec 23, 2014 10:14 pm

Try using atan2
Check input and AC output for thousands of problems on uDebug!

Post Reply

Return to “Off topic (General chit-chat)”