tim通过计算面积比例得出两直线的交点位置 double area(double x1,double y1,double x2,double y2,double x3,double y3){ double s=0.5*((x1*y2-x2*y1)+(x2*y3-x3*y2)+(x3*y1-x1*y3)); return s; }//三点计算三角形面积公式A1(X1,Y1),A2(X2,Y2),A3(X3,Y3)逆时针输入 //面积结果为负时A3在A1A2的右边(A1-〉A2-〉A3实际为顺时针)#include<bits/stdc++.h> using namesp...