Update points_lines_vectors.cpp
This commit is contained in:
parent
b49b694fa8
commit
53d3373f17
|
@ -27,6 +27,7 @@ double angle(point a, point o, point b) {
|
|||
return acos(dot(oa, ob) / sqrt(norm_sq(oa) * norm_sq(ob)));
|
||||
}
|
||||
|
||||
// (q.x - p.x) * (r.y - p.y) - (r.x - p.x) * (q.y - p.y)
|
||||
bool ccw(point p, point q, point r) { return cross(vec(p, q), vec(p, r)) > 0; }
|
||||
|
||||
struct line {
|
||||
|
|
Loading…
Reference in a new issue