Annotation of researchv10dc/630/man/src/p_man/man3/rectarith.3r, revision 1.1

1.1     ! root        1: .ds ZZ DEVELOPMENT PACKAGE
        !             2: .TH RECTARITH 3R "630 MTG"
        !             3: .XE "raddp()"
        !             4: .XE "rsubp()"
        !             5: .SH NAME
        !             6: rectarith: raddp, rsubp \- arithmetic on Rectangles
        !             7: .SH SYNOPSIS
        !             8: \f3
        !             9: #include <dmd.h>
        !            10: .br
        !            11: Rectangle raddp (r, p)
        !            12: .sp
        !            13: Rectangle rsubp (r, p)
        !            14: .sp
        !            15: Rectangle r;
        !            16: .br
        !            17: Point p;
        !            18: \fR
        !            19: .SH DESCRIPTION
        !            20: The
        !            21: .I raddp
        !            22: function
        !            23: returns the Rectangle 
        !            24: defined by
        !            25: (\fBadd(r.origin, p)\fR, \fBadd(r.corner, p)\fR).
        !            26: .PP
        !            27: The
        !            28: .I rsubp
        !            29: function
        !            30: returns the Rectangle 
        !            31: defined by
        !            32: .RB ( "sub(r.origin, p)" ,
        !            33: .BR "sub(r.corner, p)" ).
        !            34: .SH EXAMPLE
        !            35: The following code will return a rectangle with the mouse coordinates
        !            36: at the center of the box.
        !            37: .PP
        !            38: .RS 3
        !            39: .ft CM
        !            40: .nf
        !            41: #include <dmd.h>
        !            42: 
        !            43: Rectangle 
        !            44: makebox()
        !            45: {
        !            46: return (raddp (Rect(-15, -15, 15, 15),
        !            47:           mouse.xy));
        !            48: 
        !            49: }
        !            50: 
        !            51: .ft R
        !            52: .fi
        !            53: .RE
        !            54: .SH SEE ALSO
        !            55: ptarith(3R), structures(3R).
        !            56: .RE

unix.superglobalmegacorp.com

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