gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz gfx/libcoords/Coords.cxx ./TODO-uml


From: Asko Soukka
Subject: [Gzz-commits] gzz gfx/libcoords/Coords.cxx ./TODO-uml
Date: Tue, 04 Mar 2003 11:36:46 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Asko Soukka <address@hidden>    03/03/04 11:36:46

Modified files:
        gfx/libcoords  : Coords.cxx 
Removed files:
        .              : TODO-uml 

Log message:
        minor

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libcoords/Coords.cxx.diff?tr1=1.73&tr2=1.74&r1=text&r2=text

Patches:
Index: gzz/gfx/libcoords/Coords.cxx
diff -u gzz/gfx/libcoords/Coords.cxx:1.73 gzz/gfx/libcoords/Coords.cxx:1.74
--- gzz/gfx/libcoords/Coords.cxx:1.73   Tue Mar  4 05:26:23 2003
+++ gzz/gfx/libcoords/Coords.cxx        Tue Mar  4 11:36:46 2003
@@ -1187,6 +1187,16 @@
 
          return (p2.x > p3.x) && (p4.x > p1.x) && (p2.y > p3.y) && (p4.y > 
p1.y);
        }
+       /** Checks if two parallel rectangle are within each other.
+        * @param p1 first rectangle, "lower left corner"
+        * @param p2 first rectangle, "upper right corner"
+        * @param p3 second rectangle, "lower left corner"
+        * @param p4 second rectangle, "upper right corner"
+        * @return true if the given rectangles are within each other.
+        */
+       bool parallelRectWithin(ZPt &p1, ZPt &p2, ZPt &p3, ZPt &p4) {
+         return (p1.x <= p3.x) && (p1.y <= p3.y) && (p4.x <= p2.x) && (p4.y <= 
p2.y);
+       }
        /** Finds the bounding box of coordsys' box after
         * transformation. Assumes linear coordsys and transforms only
         * corner's of the box.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]