Intersecting Lines POJ - 1269
题意:给出两条直线,问这两条直线是平行还是相交还是重合
思路:kuangbin模版🐂🍺
#include <iostream>
#include <cstdio>
#include <cmath>
#define eps 1e-8
using namespace std;
int _;
int sgn(double x) {
if(fabs(x) < eps)return 0;
if(x < 0) return -1;
return 1;
}
struct Point {
// 表示点
double x, y;
Point(){
}
Point(double _x,double _y) {
x = _x; y = _y;
}
Point operator + (const Point& b) const {
return Point