Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

template<class T>
bool Impala::Core::Geometry::OverlapsAnywhere1d ( start1,
end1,
start2,
end2 
) [inline]

Indicates whether the given two one-dimensional segments overlap anywhere.

The segments are (start1,end1) and (start2,end2).

Definition at line 17 of file OverlapsAnywhere1d.h.

Referenced by Impala::Core::VideoSet::Mpeg7Doc::FindShots().

00018 {
00019     if ((start1 >= start2) && (start1 <= end2))
00020         return true;
00021     if ((end1 >= start2) && (end1 <= end2))
00022         return true;
00023     if ((start2 >= start1) && (start2 <= end1))
00024         return true;
00025         return false;
00026 }


Generated on Thu Jan 13 09:19:36 2011 for ImpalaSrc by  doxygen 1.5.1