[PD] Graph a circle arc in an array?

Peter Brinkmann peter.brinkmann at googlemail.com
Sat Apr 9 23:11:29 CEST 2011


By the way, there's a way to draw a circle using nothing but addition:
http://en.wikipedia.org/wiki/Midpoint_circle_algorithm

Implementing this in Pd is completely impractical, but it's fun to think
about.
Cheers,
     Peter


On Sat, Apr 9, 2011 at 2:12 AM, Mathieu Bouchard <matju at artengine.ca> wrote:

> On Fri, 8 Apr 2011, Tyler Leavitt wrote:
>
>  I am trying to graph a section of a circle into an array. I have been
>> trying to wrap my head around [sin] and [cos] but none of my configurations
>> get results. If you had a circle with radius 100 with a center at (0, 0) I'm
>> trying to get the upper right quadrant (positive x and positive y). The
>> start point being (100,0) and the end point being (0,100).
>>
>> Any ideas on moving forward?
>>
>
> use angles between 0 and pi/2 = 1.5708
>
> putting those into [cos] and [sin] will give you values for a circle of
> radius 1 at (0,0). For different radiuses you apply [*] after that.
>
> quadrants and clockwiseness depend on which axis uses [cos], which axis
> uses [sin], and which direction of each axis is positive. There are several
> standards for those things.
>
>  _______________________________________________________________________
> | Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110409/668ef004/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: circle.pd
Type: application/octet-stream
Size: 1709 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110409/668ef004/attachment.obj>


More information about the Pd-list mailing list