1/* 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 */ 7#ifndef LineIntersection_DEFINE 8#define LineIntersection_DEFINE 9 10#include "Intersections.h" 11 12int horizontalIntersect(const _Line& line, double y, double tRange[2]); 13int horizontalLineIntersect(const _Line& line, double left, double right, 14 double y, double tRange[2]); 15void lineIntersect(const _Line& a, const _Line& b, _Point& p); 16int intersect(const _Line& a, const _Line& b, Intersections&); 17bool testIntersect(const _Line& a, const _Line& b); 18int verticalLineIntersect(const _Line& line, double top, double bottom, 19 double x, double tRange[2]); 20 21#endif 22