|
HikoGUI
A low latency retained GUI
|
#include <TTauri/Foundation/BezierPoint.hpp>
Public Types | |
| enum class | Type { Anchor , QuadraticControl , CubicControl1 , CubicControl2 } |
Public Member Functions | |
| BezierPoint (vec const p, Type const type) noexcept | |
| BezierPoint (float const x, float const y, Type const type) noexcept | |
| template<typename M , std::enable_if_t< is_mat_v< M >, int > = 0> | |
| BezierPoint & | operator*= (M const &rhs) noexcept |
| Transform the point. | |
Static Public Member Functions | |
| static std::vector< BezierPoint > | normalizePoints (std::vector< BezierPoint >::const_iterator const begin, std::vector< BezierPoint >::const_iterator const end) noexcept |
Data Fields | |
| Type | type |
| vec | p |
Friends | |
| bool | operator== (BezierPoint const &lhs, BezierPoint const &rhs) noexcept |
| template<typename M , std::enable_if_t< is_mat_v< M >, int > = 0> | |
| BezierPoint | operator* (M const &lhs, BezierPoint 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. |
|
inlinenoexcept |
Transform the point.
|
friend |
Transform the point.