]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/2/addpt
tmdate(1): document tz field
[plan9front.git] / sys / man / 2 / addpt
index 9738c51bf25a80474d412c14035b5d12d42d3359..fbe5c63764768be3c6437829d3644ffd381019bd 100644 (file)
@@ -1,6 +1,6 @@
 .TH ADDPT 2
 .SH NAME
-addpt, subpt, mulpt, divpt, rectaddpt, rectsubpt, insetrect, canonrect, eqpt, eqrect, ptinrect, rectinrect, rectXrect, rectclip, combinerect, Dx, Dy, Pt, Rect, Rpt \- arithmetic on points and rectangles
+addpt, subpt, mulpt, divpt, rectaddpt, rectsubpt, insetrect, canonrect, eqpt, eqrect, ptinrect, rectinrect, rectXrect, rectclip, combinerect, badrect, Dx, Dy, Pt, Rect, Rpt \- arithmetic on points and rectangles
 .SH SYNOPSIS
 .B #include <u.h>
 .br
@@ -54,6 +54,9 @@ int           rectclip(Rectangle *rp, Rectangle b)
 void           combinerect(Rectangle *rp, Rectangle b)
 .PP
 .B
+int            badrect(Rectangle r)
+.PP
+.B
 int            Dx(Rectangle r)
 .PP
 .B
@@ -176,6 +179,12 @@ with the smallest rectangle sufficient to cover all the pixels of
 and
 .BR b .
 .PP
+.I Badrect
+returns 1 if
+.I r
+is zero, negative size or insanely huge rectangle.
+It returns 0 otherwise.
+.PP
 The functions
 .I Dx
 and