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

Home » Public Forums » archive » Re: Arc of a circle
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: Arc of a circle [message #70535 is a reply to message #70525] Tue, 20 April 2010 20:01 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Apr 20, 9:16 pm, Fred <fedef...@gmail.com> wrote:
> Hello!  simple question: does anybody know how to draw an arc of a
> circle in plot. A circle can be easily created, knowing the center
> coordinates and radius, through the routine "tvcircle". What I am
> mising is how to create a simple arc subtending an arbitrary angle.

Are you familiar with cosines and sines? The set of points X, Y

X = X0 + R*COS(TH)
Y = Y0 + R*SIN(TH)

where TH is an array spanning 0 to 2*!DPI, is a circle centered on
(X0,Y0).

If you choose a smaller span of angles, then you will get a circular
arc instead of a full circle.

Craig
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Unsigned Integer Math Problem
Next Topic: Re: Problem with variable declaration

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

Current Time: Sat Oct 11 03:53:50 PDT 2025

Total time taken to generate the page: 1.11957 seconds