Logo Search packages:      
Sourcecode: djvulibre version File versions

void GRectMapper::map ( GRect rect  ) 

Maps a rectangle according to the affine transform. This operation consists in mapping the rectangle corners and reordering the corners in the canonical rectangle representation. Variable rect# is overwritten with the new rectangle coordinates.

Definition at line 419 of file GRect.cpp.

References map(), GRect::xmax, GRect::xmin, GRect::ymax, and GRect::ymin.

  map(rect.xmin, rect.ymin);
  map(rect.xmax, rect.ymax);
  if (rect.xmin >= rect.xmax)
    iswap(rect.xmin, rect.xmax);
  if (rect.ymin >= rect.ymax)
    iswap(rect.ymin, rect.ymax);

Generated by  Doxygen 1.6.0   Back to index