#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 |
| void | AppendPolylinePoints (Scalar scale_factor, std::vector< Point > &points) 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 52 of file path_component.h.
|
inline |
Definition at line 60 of file path_component.h.
Definition at line 62 of file path_component.h.
| void impeller::QuadraticPathComponent::AppendPolylinePoints | ( | Scalar | scale_factor, |
| std::vector< Point > & | points | ||
| ) | const |
Definition at line 106 of file path_component.cc.
References impeller::ApproximateParabolaIntegral(), cp, impeller::TPoint< T >::Dot(), impeller::kDefaultCurveTolerance, p1, p2, and Solve().
| std::vector< Point > impeller::QuadraticPathComponent::Extrema | ( | ) | const |
Definition at line 149 of file path_component.cc.
References impeller::CubicPathComponent::Extrema().
Referenced by impeller::Path::GetMinMaxCoveragePoints().
| std::optional< Vector2 > impeller::QuadraticPathComponent::GetEndDirection | ( | ) | const |
Definition at line 164 of file path_component.cc.
Referenced by impeller::PathComponentEndDirectionVisitor::operator()().
| std::optional< Vector2 > impeller::QuadraticPathComponent::GetStartDirection | ( | ) | const |
Definition at line 154 of file path_component.cc.
Referenced by impeller::PathComponentStartDirectionVisitor::operator()().
|
inline |
Definition at line 87 of file path_component.cc.
References cp, p1, p2, impeller::QuadraticSolve(), impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by AppendPolylinePoints().
Definition at line 94 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 56 of file path_component.h.
Referenced by AppendPolylinePoints(), GetEndDirection(), GetStartDirection(), operator==(), Solve(), SolveDerivative(), and impeller::testing::TEST().
| Point impeller::QuadraticPathComponent::p1 |
Definition at line 54 of file path_component.h.
Referenced by AppendPolylinePoints(), GetEndDirection(), GetStartDirection(), operator==(), Solve(), SolveDerivative(), and impeller::testing::TEST().
| Point impeller::QuadraticPathComponent::p2 |
Definition at line 58 of file path_component.h.
Referenced by AppendPolylinePoints(), GetEndDirection(), GetStartDirection(), operator==(), Solve(), SolveDerivative(), and impeller::testing::TEST().