- 博客(2)
- 收藏
- 关注
转载 判断点是否在三角形内
1.面积法 如果三角形PAB、PAC和PBC的面积之和与三角形ABC的面积相等,则可判定点P在三角形ABC内(包括在三条边上)。已知三角形顶点A、B、C)的坐标分别为(Ax, Ay)、(Bx, By)、(Cx, Cy),即可计算其面积: S = (Ax * By + Bx * Cy + Cx * Zy - Ay * Bx - By * Cx - Cy * Ax)
2016-04-27 20:38:44
536
原创 HDU1004(枚举)
Let the Balloon Rise DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. W
2016-02-02 21:24:04
283
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人