src/stringmap/rect.cpp
RectReal RTreeRectVolume(struct Rect *R)
{
	register struct Rect *r = R;
	register int i;
	register RectReal volume = (RectReal)1;

	assert(r);
	if (Undefined(r))
		return (RectReal)0;

	for(i=0; i<NUMDIMS; i++)
		volume *= r->boundary[i+NUMDIMS] - r->boundary[i];
	assert(volume >= 0.0);
	return volume;
}
/*-----------------------------------------------------------------------------
| Calculate the n-dimensional volume of a rectangle
-----------------------------------------------------------------------------*/
| Calculate the n-dimensional volume of a rectangle
| Calculate the n - dimensional volume of a rectangle
RectReal RTreeRectVolume(struct Rect *R)
{
	register struct Rect *r = R;
	register int i;
	register RectReal volume = (RectReal)1;
	assert(r);
	if (Undefined(r))
		return (RectReal)0;
	for(i=0; i<NUMDIMS; i++)
		volume *= r->boundary[i+NUMDIMS] - r->boundary[i];
	assert(volume >= 0.0);
	return volume;
}
RectReal RTreeRectVolume ( struct Rect * R ) { register struct Rect * r = R ; register int i ; register RectReal volume = ( RectReal ) 1 ; assert ( r ) ; if ( Undefined ( r ) ) return ( RectReal ) 0 ; for ( i = 0 ; i < NUMDIMS ; i ++ ) volume *= r -> boundary [ i + NUMDIMS ] - r -> boundary [ i ] ; assert ( volume >= 0.0 ) ; return volume ; }
| Calculate the n-dimensional volume of a rectangle
| Calculate the n - dimensional volume of a rectangle