HikoGUI
A low latency retained GUI
|
#include <hikogui/graphic_path/bezier_point.hpp>
Public Types | |
enum class | Type { Anchor , QuadraticControl , CubicControl1 , CubicControl2 } |
Public Member Functions | |
constexpr | bezier_point (point2 const p, Type const type) noexcept |
constexpr | bezier_point (float const x, float const y, Type const type) noexcept |
Static Public Member Functions | |
static constexpr 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 | |
constexpr friend bool | operator== (bezier_point const &, bezier_point const &) noexcept=default |
constexpr friend bezier_point | operator* (transformer2 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.
|
inlinestaticconstexprnoexcept |
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.