Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: rectangle contains point Date: Fri, 05 Oct 2012 15:43:15 -0400 Organization: A noiseless patient Spider Lines: 12 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 5 Oct 2012 19:37:52 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="6a6a291fa7e9c0bd872c1a9cbe2b371d"; logging-data="29077"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lNxkghc2fqWzwp9eat7WNK5g0QTmIeGY=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120726 Icedove/3.0.11 In-Reply-To: Cancel-Lock: sha1:ICYyHQC+bl8PUmaGgoPwPbBqpCQ= Xref: csiph.com comp.lang.java.programmer:19144 On 10/05/2012 03:00 PM, bob smith wrote: > So, I have a rectangle class as follows: > > public class My_Rectangle { > double x, y, width, height; > AffineTransform aft; > > Anyone know a good strategy for checking if a point is in the rectangle? > > The main difficulty is the transform. John B. Matthews provided a strategy for this in a reply to another of your recent posts.