~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/2geom/d2.h

  • Committer: Ted Gould
  • Date: 2008-11-21 05:24:08 UTC
  • Revision ID: ted@canonical.com-20081121052408-tilucis2pjrrpzxx
MergeĀ fromĀ fe-moved

Show diffs side-by-side

added added

removed removed

Lines of Context:
400
400
 
401
401
//Some D2 Fragment implementation which requires rect:
402
402
template <typename T>
403
 
Rect bounds_fast(const D2<T> &a) {
404
 
    boost::function_requires<FragmentConcept<T> >();        
405
 
    return Rect(bounds_fast(a[X]), bounds_fast(a[Y]));
406
 
}
407
 
template <typename T>
408
 
Rect bounds_exact(const D2<T> &a) {
409
 
    boost::function_requires<FragmentConcept<T> >();        
410
 
    return Rect(bounds_exact(a[X]), bounds_exact(a[Y]));
411
 
}
412
 
template <typename T>
413
 
Rect bounds_local(const D2<T> &a, const Interval &t) {
414
 
    boost::function_requires<FragmentConcept<T> >();        
415
 
    return Rect(bounds_local(a[X], t), bounds_local(a[Y], t));
 
403
OptRect bounds_fast(const D2<T> &a) {
 
404
    boost::function_requires<FragmentConcept<T> >();
 
405
    return OptRect(bounds_fast(a[X]), bounds_fast(a[Y]));
 
406
}
 
407
template <typename T>
 
408
OptRect bounds_exact(const D2<T> &a) {
 
409
    boost::function_requires<FragmentConcept<T> >();
 
410
    return OptRect(bounds_exact(a[X]), bounds_exact(a[Y]));
 
411
}
 
412
template <typename T>
 
413
OptRect bounds_local(const D2<T> &a, const OptInterval &t) {
 
414
    boost::function_requires<FragmentConcept<T> >();
 
415
    return OptRect(bounds_local(a[X], t), bounds_local(a[Y], t));
416
416
}
417
417
};
418
418