#include <bezier.hpp>
Inheritance diagram for Bezier:

Public Types | |
| enum | Flag_t |
Public Member Functions | |
| int | getNbCtrlPoints () const |
| Get the number of control points used to define the curve. | |
| float | getNearestPercent (int x, int y) const |
| float | getMinDist (int x, int y) const |
| Return the distance of (x, y) to the curve. | |
| void | getPoint (float t, int &x, int &y) const |
| int | getWidth () const |
| Get the width (maximum abscissa) of the curve. | |
| int | getHeight () const |
| Get the height (maximum ordinate) of the curve. | |
Definition at line 36 of file bezier.hpp.
|
|
Values to indicate which coordinate(s) must be checked to consider that two points are distinct Definition at line 41 of file bezier.hpp. |
|
||||||||||||
|
Return the percentage (between 0 and 1) of the curve point nearest from (x, y) Definition at line 103 of file bezier.cpp. Referenced by Anchor::canHang(), and CtrlSliderBg::handleEvent(). |
|
||||||||||||||||
|
Get the coordinates of the point at t percent of the curve (t must be between 0 and 1) Definition at line 118 of file bezier.cpp. Referenced by Anchor::canHang(), CtrlSliderCursor::draw(), and CtrlSliderCursor::mouseOver(). |
1.4.2