|
|
1.1 ! root 1: .ds ZZ DEVELOPMENT PACKAGE ! 2: .TH EQ 3R "630 MTG" ! 3: .XE "eqpt()" ! 4: .XE "eqrect()" ! 5: .SH NAME ! 6: eq: eqpt, eqrect \- compare for equality ! 7: .SH SYNOPSIS ! 8: .B #include <dmd.h> ! 9: .sp ! 10: .B int eqpt (p, q) ! 11: .br ! 12: .B Point p, q; ! 13: .PP ! 14: .B int eqrect (r, s) ! 15: .br ! 16: .B Rectangle r, s; ! 17: .SH DESCRIPTION ! 18: The ! 19: .I eqpt ! 20: function ! 21: compares two Points ! 22: and returns ! 23: a 1 if the Points are equal or a 0 if they are unequal. ! 24: Two Points ! 25: are equal if the corresponding coordinates ! 26: .I x ! 27: and ! 28: .I y ! 29: are equal. ! 30: .PP ! 31: The ! 32: .I eqrect ! 33: function ! 34: compares two Rectangles ! 35: and returns ! 36: a 1 if the Rectangles are equal or a 0 if they are unequal. ! 37: Two Rectangles ! 38: are equal if all four corresponding coordinates are equal. ! 39: .SH EXAMPLE ! 40: The ! 41: .I eqmouse ! 42: function ! 43: determines if the current mouse coordinate equals \fIp\fR. ! 44: The ! 45: .I eqDrect ! 46: function ! 47: determines if the Rectangle passed equals \fIDrect\fR. ! 48: .PP ! 49: .RS 3 ! 50: .ft CM ! 51: .nf ! 52: #include <dmd.h> ! 53: ! 54: eqmouse(p) ! 55: Point p; ! 56: { ! 57: return eqpt (mouse.xy, p); ! 58: } ! 59: ! 60: eqDrect(r) ! 61: Rectangle r; ! 62: { ! 63: return eqrect (Drect, r); ! 64: } ! 65: .fi ! 66: .ft R ! 67: .RE ! 68: .SH SEE ALSO ! 69: structures(3R).
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.