Details of the scope of PtInRect

Details of the scope of PtInRect

 

CRect :: PtInRect function can be used to determine whether a given point within the rectangular area is located, the MSDN but did not give a detailed boundary cases, we are given below:

rect.PtInRect (point); i.e. a rectangular box RECT, it is determined whether the dot point, the result is:

If rect.left <= point.x <rect.right and rect.top <= point.y <rect.bottom considered point within the rect, or vice versa. Here we are emphasizing a closed left and right open range.

 

https://blog.csdn.net/facerec/article/details/1686647

Guess you like

Origin www.cnblogs.com/2018shawn/p/12517457.html