On Monday, September 23, 2002, at 01:01 PM, Kerry Seibold wrote: > I am looking for some PERL code to use to do some calculations for arcs > in a > cartesian coordinate system. > Given x,y for arc direction (CW or CCW), arc start point, arc end > point, and > arc centre, I want to calculate xmax, ymax, xmin, ymin. > The arc can start in any quadrant and end in any quadrant. > I also want to calculate arc length. > I have searched on CPAN but can't find what I'm looking for. > Can you point me in the right direction?
I thinks its too easy a task for cpan Can you send us an ascii diagram that shows exactly what you want. An arc is a part of a circle so the arc length = radius x angle in radians. What exactly are the min and max values that you want as I am not quite clear on this. Thats why a diagram would be perfect. start ^ . . | . | . r . | . |__________ end? ^centre Michael Lake Caver, Linux enthusiast and interested in anything technical. UTS CRICOS Provider Code: 00099F DISCLAIMER ======================================================================== This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. ======================================================================== -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
