comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » disk arc
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: disk arc [message #92941 is a reply to message #92939] Wed, 30 March 2016 15:47 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Wednesday, March 30, 2016 at 4:45:13 PM UTC-4, wlandsman wrote:
> If you have a set of X, Y positions and a center position xc,yc then you can find the angle from the center
>
> ang = atan( x-xc, y-yc)
>
> You can then assign the angles into sectors of size !pi/4
>

I had X and Y reversed

ang = atan( y-yc, x-xc)

http://www.harrisgeospatial.com/docs/ATAN.html
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Reducing eps file size for plots with overlaid images?
Next Topic: IDL Poetry

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:41:39 PDT 2025

Total time taken to generate the page: 0.00588 seconds