http://blog.csdn.net/u010025211/article/details/25032209 知识点一:平面中判断一个点是否在三角形内部. #include <stdio.h> //m,n表示待检测点的x,y坐标,a,b,c表示三角形的三个点 bool isInTriangle(double m,double n,double ax,double bx,double cx,double ay,double by,double cy) { double u = (m-ax)*…