head     1.1;
branch   ;
access   ;
symbols  ;
locks    kemnitz:1.1; strict;
comment  @ * @;


1.1
date     90.06.06.00.01.47;  author kemnitz;  state Exp;
branches ;
next     ;


desc
@Box area function
@



1.1
log
@Initial revision
@
text
@typedef struct {
	double  xh, yh, xl, yl;     /* high and low coords */
} BOX;

#define ABS(X) ((X) > 0 ? (X) : -(X))

int
boxarea(box)

BOX *box;

{
	int width, height;

	width  = ABS(box->xh - box->xl);
	height = ABS(box->yh - box->yl);
	return (width * height);
}
@
