Logo Search packages:      
Sourcecode: inkscape version File versions

double Geom::D2< Interval >::area (  )  const [inline]

Compute the area of this rectangle.

Note that a zero area rectangle is not empty - just as the interval [0,0] contains one point, the rectangle [0,0] x [0,0] contains 1 point and no area.

Return values:
For a valid return value, the rect must be tested for emptyness first.

Definition at line 116 of file rect.h.

Referenced by sp_desktop_widget_size_allocate(), and SPDesktop::zoom_quick().

{ return f[X].extent() * f[Y].extent(); }

Generated by  Doxygen 1.6.0   Back to index