caryclark@google.com | 27accef | 2012-01-25 18:57:23 +0000 | [diff] [blame] | 1 | #include "DataTypes.h" |
| 2 | |
| 3 | bool implicitLine(const _Line& line, double& slope, double& axisIntercept); |
| 4 | int reduceOrder(const _Line& line, _Line& reduced); |
caryclark@google.com | 8dcf114 | 2012-07-02 20:27:02 +0000 | [diff] [blame] | 5 | |
| 6 | double t_at(const _Line&, const _Point& ); |
| 7 | void xy_at_t(const _Line& , double t, double& x, double& y); |
| 8 | |
| 9 | enum x_at_flags { |
| 10 | kFindTopMin = 1, |
| 11 | kFindTopMax = 2, |
| 12 | kFindBottomMin = 4, |
| 13 | kFindBottomMax = 8 |
| 14 | }; |
| 15 | |
| 16 | void x_at(const _Point& p1, const _Point& p2, double minY, double maxY, |
| 17 | int flags, double& tMin, double& tMax); |
| 18 | |