mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
Update intersection.cpp
Added #ifdef _WIN32 for finite number testing
This commit is contained in:
parent
d01e95f4b4
commit
18e7aa5d19
@ -121,7 +121,11 @@ int rotatedRectangleIntersection( const RotatedRect& rect1, const RotatedRect& r
|
||||
float t2 = (vx1*y21 - vy1*x21) / det;
|
||||
|
||||
// This takes care of parallel lines
|
||||
#ifdef _WIN32
|
||||
if( !_finite(t1) || ! _finite(t2) )
|
||||
#else
|
||||
if( !std::isfinite(t1) || !std::isfinite(t2) )
|
||||
#endif
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user