Flutter Engine
The Flutter Engine
|
#include <path_component.h>
Public Types | |
using | PointProc = std::function< void(const Point &point)> |
Public Member Functions | |
CubicPathComponent () | |
CubicPathComponent (const QuadraticPathComponent &q) | |
CubicPathComponent (Point ap1, Point acp1, Point acp2, Point ap2) | |
Point | Solve (Scalar time) const |
Point | SolveDerivative (Scalar time) const |
void | AppendPolylinePoints (Scalar scale, std::vector< Point > &points) const |
std::vector< Point > | Extrema () const |
void | ToLinearPathComponents (Scalar scale, const PointProc &proc) const |
void | ToLinearPathComponents (Scalar scale, VertexWriter &writer) const |
CubicPathComponent | Subsegment (Scalar t0, Scalar t1) const |
bool | operator== (const CubicPathComponent &other) const |
std::optional< Vector2 > | GetStartDirection () const |
std::optional< Vector2 > | GetEndDirection () const |
Public Attributes | |
Point | p1 |
Point | cp1 |
Point | cp2 |
Point | p2 |
Definition at line 101 of file path_component.h.
using impeller::CubicPathComponent::PointProc = std::function<void(const Point& point)> |
Definition at line 130 of file path_component.h.
|
inline |
Definition at line 111 of file path_component.h.
|
inlineexplicit |
void impeller::CubicPathComponent::AppendPolylinePoints | ( | Scalar | scale, |
std::vector< Point > & | points | ||
) | const |
Definition at line 229 of file path_component.cc.
std::vector< Point > impeller::CubicPathComponent::Extrema | ( | ) | const |
Definition at line 332 of file path_component.cc.
std::optional< Vector2 > impeller::CubicPathComponent::GetEndDirection | ( | ) | const |
std::optional< Vector2 > impeller::CubicPathComponent::GetStartDirection | ( | ) | const |
|
inline |
Definition at line 215 of file path_component.cc.
Definition at line 222 of file path_component.cc.
CubicPathComponent impeller::CubicPathComponent::Subsegment | ( | Scalar | t0, |
Scalar | t1 | ||
) | const |
Definition at line 250 of file path_component.cc.
void impeller::CubicPathComponent::ToLinearPathComponents | ( | Scalar | scale, |
const PointProc & | proc | ||
) | const |
Definition at line 260 of file path_component.cc.
void impeller::CubicPathComponent::ToLinearPathComponents | ( | Scalar | scale, |
VertexWriter & | writer | ||
) | const |
Point impeller::CubicPathComponent::cp1 |
Definition at line 105 of file path_component.h.
Point impeller::CubicPathComponent::cp2 |
Definition at line 107 of file path_component.h.
Point impeller::CubicPathComponent::p1 |
Definition at line 103 of file path_component.h.
Point impeller::CubicPathComponent::p2 |
Definition at line 109 of file path_component.h.