2012-08-27 14:11:33 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2012 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
2012-03-27 13:23:51 +00:00
|
|
|
#ifndef LineIntersection_DEFINE
|
|
|
|
#define LineIntersection_DEFINE
|
2012-01-10 21:46:10 +00:00
|
|
|
|
2013-02-14 15:29:11 +00:00
|
|
|
#include "Intersections.h"
|
2012-01-10 21:46:10 +00:00
|
|
|
|
2012-02-03 22:07:47 +00:00
|
|
|
int horizontalIntersect(const _Line& line, double y, double tRange[2]);
|
2012-03-20 21:11:59 +00:00
|
|
|
int horizontalLineIntersect(const _Line& line, double left, double right,
|
|
|
|
double y, double tRange[2]);
|
2013-01-17 21:02:47 +00:00
|
|
|
void lineIntersect(const _Line& a, const _Line& b, _Point& p);
|
2013-02-14 15:29:11 +00:00
|
|
|
int intersect(const _Line& a, const _Line& b, Intersections&);
|
2012-01-10 21:46:10 +00:00
|
|
|
bool testIntersect(const _Line& a, const _Line& b);
|
2013-01-17 21:02:47 +00:00
|
|
|
int verticalLineIntersect(const _Line& line, double top, double bottom,
|
|
|
|
double x, double tRange[2]);
|
2012-03-27 13:23:51 +00:00
|
|
|
|
|
|
|
#endif
|