|
HikoGUI
A low latency retained GUI
|
#include <hikogui/bezier_point.hpp>
Public Types | |
| enum class | Type { Anchor , QuadraticControl , CubicControl1 , CubicControl2 } |
Public Member Functions | |
| bezier_point (point2 const p, Type const type) noexcept | |
| bezier_point (float const x, float const y, Type const type) noexcept | |
Static Public Member Functions | |
| static std::vector< bezier_point > | normalizePoints (std::vector< bezier_point >::const_iterator const begin, std::vector< bezier_point >::const_iterator const end) noexcept |
Data Fields | |
| Type | type |
| point2 | p |
Friends | |
| bool | operator== (bezier_point const &lhs, bezier_point const &rhs) noexcept |
| bezier_point | operator* (geo::transformer auto const &lhs, bezier_point const &rhs) noexcept |
| Transform the point. | |
A point or control-point on contour of bezier curves. The bezier curves can be linear (a line), quadratic or cubic.
|
inlinestaticnoexcept |
Normalize points in a list. The following normalizations are executed:
| begin | iterator to the start of the bezier point list. |
| end | iterator beyond the end of the bezier point list. |
|
friend |
Transform the point.