/[gzz]/gzz/gzz/media/impl/Enfilade1DImpl.java
ViewVC logotype

Diff of /gzz/gzz/media/impl/Enfilade1DImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by benja, Sun Aug 18 12:00:29 2002 UTC revision 1.10 by tjl, Mon Sep 16 09:09:22 2002 UTC
# Line 268  static public final String rcsid = "$Id$ Line 268  static public final String rcsid = "$Id$
268          return getList().hashCode();          return getList().hashCode();
269      }      }
270    
271        /** Return true if this enfilade intersects
272         * (span-wise) the other one.
273         * XXX Implemented using a really slow, bad algorithm.
274         */
275        public boolean intersects(Enfilade1D other0) {
276            Enfilade1DImpl other = (Enfilade1DImpl)other0;
277            if(middle != null && other.intersects(middle))
278                    return true;
279            if(left != null && left.intersects(other))
280                    return true;
281            if(right != null && right.intersects(other))
282                    return true;
283            return false;
284        }
285    
286        /** Return true if this enfilade intersects
287         * (span-wise) the given span.
288         * XXX Implemented using a really slow, bad algorithm.
289         */
290        public boolean intersects(Span s) {
291            if(middle != null && middle.intersects(s))
292                    return true;
293            if(left != null && left.intersects(s))
294                    return true;
295            if(right != null && right.intersects(s))
296                    return true;
297            return false;
298        }
299    
300      public Enfilade1D optimized() {      public Enfilade1D optimized() {
301          // brute force-- regenerate all...          // brute force-- regenerate all...
302          List l = getList();          List l = getList();

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26