| |
| |
| #ifndef TCUBICBEZIER_INCLUDED |
| #define TCUBICBEZIER_INCLUDED |
| |
| |
| |
| #include "tmathutil.h" |
| |
| #include "tgeometry.h" |
| |
| |
| using TConsts::epsilon; |
| |
| #undef DVAPI |
| #undef DVVAR |
| #ifdef TPARAM_EXPORTS |
| #define DVAPI DV_EXPORT_API |
| #define DVVAR DV_EXPORT_VAR |
| #else |
| #define DVAPI DV_IMPORT_API |
| #define DVVAR DV_IMPORT_VAR |
| #endif |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| DVAPI double invCubicBezierX(double x, |
| const TPointD &a, |
| const TPointD &aSpeed, |
| const TPointD &bSpeed, |
| const TPointD &b); |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| DVAPI double getCubicBezierY(double x, |
| const TPointD &a, |
| const TPointD &aSpeed, |
| const TPointD &bSpeed, |
| const TPointD &b); |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| DVAPI std::pair<TPointD, TPointD> getMinMaxCubicBezierY(const TPointD &a, |
| const TPointD &aSpeed, |
| const TPointD &bSpeed, |
| const TPointD &b); |
| |
| |
| |
| #endif |
| |
| |
| |