regionArea

[ XITE Reference Manual | XITE home ]

Name

regionArea - find the area of one or more regions

Syntax

 #include <xite/region.h>

 int regionArea( region* reg, int loop,
    int* area );

Description

Calculates the area of one or several regions. If "loop" is false, only the area of "reg" is measured. If true, the "next" pointer in reg is followed until nil, and all areas are accumulated.

Return value

 0 => ok
 1 => "reg" points to nil

See also

regionAnalyse(1), regionConvexHull(3), regionCreate(3), regionDraw(3), regionFree(3), regionHistoUpdate(3), regionHisto(3), regionImoment(3), regionInsertYline(3), regionDeleteYline(3), regionEndInsert(3), regionXmean(3), regionYmean(3), regionMean(3), regionXmin(3), regionXmax(3), regionYmin(3), regionYmax(3), regionMinMax(3), regionCMoment(3), regionPMoment(3), regionMoment(3), regionPerform(3), regionPerimeter(3), regionIsPoint(3), regionPoint(3), regionSearch(3), regionSort(3), regionCopy(3), regionUnion(3), regionOverlap(3), regionNeighbor(3), regionVolume(3), regionYline(3)

Author

Tor Lønnestad, BLAB, Ifi, UiO

Id

$Id: regionArea.c,v 1.20 1997/07/03 10:20:24 svein Exp $