#include <path_component.h>
Public Member Functions | |
| QuadraticPathComponent () | |
| QuadraticPathComponent (Point ap1, Point acp, Point ap2) | |
| Point | Solve (Scalar time) const |
| Point | SolveDerivative (Scalar time) const |
| std::vector< Point > | CreatePolyline (Scalar scale) const |
| void | FillPointsForPolyline (std::vector< Point > &points, Scalar scale_factor) const |
| std::vector< Point > | Extrema () const |
| bool | operator== (const QuadraticPathComponent &other) const |
| std::optional< Vector2 > | GetStartDirection () const |
| std::optional< Vector2 > | GetEndDirection () const |
Public Attributes | |
| Point | p1 |
| Point | cp |
| Point | p2 |
Definition at line 50 of file path_component.h.
|
inline |
Definition at line 55 of file path_component.h.
Definition at line 57 of file path_component.h.
| std::vector< Point > impeller::QuadraticPathComponent::Extrema | ( | ) | const |
Definition at line 151 of file path_component.cc.
References impeller::CubicPathComponent::Extrema().
| void impeller::QuadraticPathComponent::FillPointsForPolyline | ( | std::vector< Point > & | points, |
| Scalar | scale_factor | ||
| ) | const |
Definition at line 109 of file path_component.cc.
References impeller::ApproximateParabolaIntegral(), cp, impeller::TPoint< T >::Dot(), impeller::kDefaultCurveTolerance, p1, p2, and Solve().
Referenced by CreatePolyline().
| std::optional< Vector2 > impeller::QuadraticPathComponent::GetEndDirection | ( | ) | const |
Definition at line 166 of file path_component.cc.
Referenced by impeller::PathComponentEndDirectionVisitor::operator()().
| std::optional< Vector2 > impeller::QuadraticPathComponent::GetStartDirection | ( | ) | const |
Definition at line 156 of file path_component.cc.
Referenced by impeller::PathComponentStartDirectionVisitor::operator()().
|
inline |
Definition at line 84 of file path_component.cc.
References cp, p1, p2, impeller::QuadraticSolve(), impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by FillPointsForPolyline().
Definition at line 91 of file path_component.cc.
References cp, p1, p2, impeller::QuadraticSolveDerivative(), impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
| Point impeller::QuadraticPathComponent::cp |
Definition at line 52 of file path_component.h.
Referenced by FillPointsForPolyline(), GetEndDirection(), GetStartDirection(), operator==(), Solve(), SolveDerivative(), and impeller::testing::TEST().
| Point impeller::QuadraticPathComponent::p1 |
Definition at line 51 of file path_component.h.
Referenced by FillPointsForPolyline(), GetEndDirection(), GetStartDirection(), operator==(), Solve(), SolveDerivative(), and impeller::testing::TEST().
| Point impeller::QuadraticPathComponent::p2 |
Definition at line 53 of file path_component.h.
Referenced by FillPointsForPolyline(), GetEndDirection(), GetStartDirection(), operator==(), Solve(), SolveDerivative(), and impeller::testing::TEST().