Article View: cmu.cs.general
Article #153Bounding Box of an Arc
From: Brad Myers
Date: Thu, 02 Dec 1993 15:51
Date: Thu, 02 Dec 1993 15:51
21 lines
1712 bytes
1712 bytes
Can someone send me the formula for computing the bounding box that just fits around an arc of a circle? For example, for: / \ C / / A / / B // P ._______________ Horiz (Line C is actually rounded (part of a circle centered at P)). A and B are both of length R (radius of the circle). The arc is defined by P, ANGLE1 which is from Horiz to B, and ANGLE2 which goes from B to A. Note that the arc is not necessarily in the first quadrant (ANGLE1 can be up to 360), and ANGLE2 can also be between 0 and 360. What makes this harder is that for some orientations of the arc, the circular part of C extends beyond the ends of B and A in either X or Y, so the bounding box of the lines A and B often do not include all of the arc C. Thanks! Brad Myers
Technical Details
Message-ID:
<CHF02C.7C5.1@cs.cmu.edu>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!europa.eng.gtefsd.com!news.umbc.edu!eff!usenet.ins.cwru.edu!lerc.nasa.gov!magnus.acs.ohio-state.edu!math.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!bb3.andrew.cmu.edu!crabapple.srv.cs.cmu.edu!bamShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11592a,3190d124ff8396fd,start X-Google-Attributes: gid11592a,public X-Google-Thread: fb37e,3190d124ff8396fd,start X-Google-Attributes: gidfb37e,public X-Google-ArrivalTime: 1993-12-02 08:12:01 PST Newsgroups: cmu.cs.general,comp.graphics Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!europa.eng.gtefsd.com!news.umbc.edu!eff!usenet.ins.cwru.edu!lerc.nasa.gov!magnus.acs.ohio-state.edu!math.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!bb3.andrew.cmu.edu!crabapple.srv.cs.cmu.edu!bam From: bam+@BAM.GARNET.CS.CMU.EDU (Brad Myers) Subject: Bounding Box of an Arc Message-ID: <CHF02C.7C5.1@cs.cmu.edu> Originator: bam@BAM.GARNET.CS.CMU.EDU Sender: news@cs.cmu.edu (Usenet News System) Nntp-Posting-Host: bam.garnet.cs.cmu.edu Organization: School of Computer Science, Carnegie Mellon Date: Thu, 2 Dec 1993 10:51:44 -0500 Lines: 21