How to implement the same function as CRgn::PtInRegion
As every one knows, "CRgn::PtInRegion( int x, int y )" can check whether the point given by x and y is in the region stored in the CRgn object. But I donot know the algorithm.
My question is described like this:
I have declared a class whose name is CMyPoint.
class CMyPoint
{
double dx;
double dy;
}
And I also have an array of CMyPoint objects. The objects in this array construct a region. So, I want to know wether a given CMyPoint object is in this region.
thanks.
# 1 Re: How to implement the same function as CRgn::PtInRegion
I have done the same in the past and ths ( http://www.alienryderflex.com/polygon/) forum helped me out. Hope it helps u 2. :wave:
# 2 Re: How to implement the same function as CRgn::PtInRegion
thank you for your help
I have done the same in the past and ths ( http://www.alienryderflex.com/polygon/) forum helped me out. Hope it helps u 2. :wave: