示例#1
0
文件: geo.cpp 项目: chyyuu/ACM
bool equalSegment(segment a, segment b) {
    return zero(a.angle() - b.angle());
}
示例#2
0
文件: geo.cpp 项目: chyyuu/ACM
bool cmpSegment(segment a, segment b) {
	if (!zero(a.angle() - b.angle())) return a.angle() < b.angle();
	return (a.b - a.a) / (b.a - a.a) < 0;
}