blob: 4036f136e112024ac547259b5b7eb2a83a1aba09 [file] [log] [blame]
caryclark@google.com9e49fb62012-08-27 14:11:33 +00001/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
caryclark@google.comd88e0892012-03-27 13:23:51 +00007#ifndef LineIntersection_DEFINE
8#define LineIntersection_DEFINE
caryclark@google.com639df892012-01-10 21:46:10 +00009
caryclark@google.com45a8fc62013-02-14 15:29:11 +000010#include "Intersections.h"
caryclark@google.com639df892012-01-10 21:46:10 +000011
caryclark@google.comc6825902012-02-03 22:07:47 +000012int horizontalIntersect(const _Line& line, double y, double tRange[2]);
caryclark@google.com2e7f4c82012-03-20 21:11:59 +000013int horizontalLineIntersect(const _Line& line, double left, double right,
14 double y, double tRange[2]);
caryclark@google.com73ca6242013-01-17 21:02:47 +000015void lineIntersect(const _Line& a, const _Line& b, _Point& p);
caryclark@google.com45a8fc62013-02-14 15:29:11 +000016int intersect(const _Line& a, const _Line& b, Intersections&);
caryclark@google.com639df892012-01-10 21:46:10 +000017bool testIntersect(const _Line& a, const _Line& b);
caryclark@google.com73ca6242013-01-17 21:02:47 +000018int verticalLineIntersect(const _Line& line, double top, double bottom,
19 double x, double tRange[2]);
caryclark@google.comd88e0892012-03-27 13:23:51 +000020
21#endif