Example #1
0
File: geo.cpp Project: chyyuu/ACM
bool equalSegment(segment a, segment b) {
    return zero(a.angle() - b.angle());
}
Example #2
0
File: geo.cpp Project: 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;
}