阅读背景:

判断点是否在三角形内的方法

来源:互联网 

一、调用API。

BOOL PtInRegion(
  HRGN hrgn,  // handle to region
  int X,      // x-coordinate of point
  int Y       // y-coordinate of point
);

HRGN CreatePolygonRgn(
  CONST POINT *lppt,  // array of points
  int cPoints,        // number of points in array
  int fnPolyFillMode  // polygon-filling mode
);

BOOL PtInRegion(
  HRGN hrgn,  // ha



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: