blob: 6052875a9bf02e46d78314921ff8a76d0d0f965a [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.com27accef2012-01-25 18:57:23 +00007#include "DataTypes.h"
8
9bool implicitLine(const _Line& line, double& slope, double& axisIntercept);
10int reduceOrder(const _Line& line, _Line& reduced);
caryclark@google.combeda3892013-02-07 13:13:41 +000011double is_left(const _Line& line, const _Point& pt);
caryclark@google.com9d5f99b2013-01-22 12:55:54 +000012void sub_divide(const _Line& src, double t1, double t2, _Line& dst);
caryclark@google.com8dcf1142012-07-02 20:27:02 +000013double t_at(const _Line&, const _Point& );
14void xy_at_t(const _Line& , double t, double& x, double& y);
15
16enum x_at_flags {
17 kFindTopMin = 1,
18 kFindTopMax = 2,
19 kFindBottomMin = 4,
20 kFindBottomMax = 8
21};
22
23void x_at(const _Point& p1, const _Point& p2, double minY, double maxY,
24 int flags, double& tMin, double& tMax);