blob: 33076b68e94f40e8baf10832c854707d3cb7fa2b [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
10#include "DataTypes.h"
11
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.comfa0588f2012-04-26 21:01:06 +000015int verticalLineIntersect(const _Line& line, double top, double bottom,
16 double x, double tRange[2]);
caryclark@google.comc6825902012-02-03 22:07:47 +000017int intersect(const _Line& a, const _Line& b, double aRange[2], double bRange[2]);
caryclark@google.com639df892012-01-10 21:46:10 +000018bool testIntersect(const _Line& a, const _Line& b);
caryclark@google.comd88e0892012-03-27 13:23:51 +000019
20#endif