File:  [Research Unix] / researchv10dc / 630 / man / src / p_man / man3 / eq.3r
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.ds ZZ DEVELOPMENT PACKAGE
.TH EQ 3R "630 MTG"
.XE "eqpt()"
.XE "eqrect()"
.SH NAME
eq: eqpt, eqrect \- compare for equality
.SH SYNOPSIS
.B #include <dmd.h>
.sp
.B int eqpt (p, q)
.br
.B Point p, q;
.PP
.B int eqrect (r, s)
.br
.B Rectangle r, s;
.SH DESCRIPTION
The
.I eqpt
function
compares two Points
and returns
a 1 if the Points are equal or a 0 if they are unequal.
Two Points
are equal if the corresponding coordinates
.I x
and
.I y
are equal.
.PP
The
.I eqrect
function
compares two Rectangles
and returns
a 1 if the Rectangles are equal or a 0 if they are unequal.
Two Rectangles
are equal if all four corresponding coordinates are equal.
.SH EXAMPLE
The
.I eqmouse
function
determines if the current mouse coordinate equals \fIp\fR.
The
.I eqDrect
function
determines if the Rectangle passed equals \fIDrect\fR.
.PP
.RS 3
.ft CM
.nf
#include <dmd.h>

eqmouse(p)
Point p;
{
        return eqpt (mouse.xy, p);
}

eqDrect(r)
Rectangle r;
{
        return eqrect (Drect, r);
}
.fi
.ft R
.RE
.SH SEE ALSO
structures(3R).

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.