Re: Making big triangle (FOV) [message #82243] |
Tue, 27 November 2012 06:30 |
zolile mtumela
Messages: 50 Registered: September 2011
|
Member |
|
|
On Tuesday, November 27, 2012 2:59:15 PM UTC+2, zolile...@gmail.com wrote:
> Hi all I have a program the can do mapping. I need help , I want to plot a field of view of the radar in the map. Field of view its like a big triangle but at the two end points form something like curve to merge those points. I do nt hv any idea how to make that kind of curve. I used plots to make triangle (FOV). Hence its not a pure triangle , can you help on making that kind of curve! I have been looking for some kind of routine but I dnt get any help. All suggestions all welcome. Thank you in advance for ur time!!
Thank you so much!
I reading this program now, I real appreciate ur help!!
|
|
|
Re: Making big triangle (FOV) [message #82246 is a reply to message #82243] |
Tue, 27 November 2012 05:29  |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Tuesday, November 27, 2012 1:59:15 PM UTC+1, zolile...@gmail.com wrote:
> Hi all
>
> I have a program the can do mapping. I need help , I want to plot a field of view of the radar in the map. Field of view its like a big triangle but at the two end points form something like curve to merge those points. I do nt hv any idea how to make that kind of curve. I used plots to make triangle (FOV). Hence its not a pure triangle , can you help on making that kind of curve! I have been looking for some kind of routine but I dnt get any help.
>
>
>
> All suggestions all welcome.
>
> Thank you in advance for ur time!!
I guess that this article should help you.
http://www.idlcoyote.com/graphics_tips/anisotropy.php
Use the function "arc" this way:
window, /free, xsize=600, ysize=600
center=[300.0,300.0]
Radius = 200.0
Ang1 = 45.0
Ang2 = 135.0
plots, [center[0],center[0]+Radius*cos(Ang1/!RaDeg)], [center[1],center[1]+Radius*sin(Ang1/!RaDeg)], /device
plots, [center[0],center[0]+Radius*cos(Ang2/!RaDeg)], [center[1],center[1]+Radius*sin(Ang2/!RaDeg)], /device
plots, arc(center[0],center[1],Radius,Ang1,Ang2), /device
Cheers,
Helder
|
|
|