#include <path_component.h>
Public Member Functions | |
| LinearPathComponent () | |
| LinearPathComponent (Point ap1, Point ap2) | |
| Point | Solve (Scalar time) const |
| void | AppendPolylinePoints (std::vector< Point > &points) const |
| std::vector< Point > | Extrema () const |
| bool | operator== (const LinearPathComponent &other) const |
| std::optional< Vector2 > | GetStartDirection () const |
| std::optional< Vector2 > | GetEndDirection () const |
Public Attributes | |
| Point | p1 |
| Point | p2 |
Definition at line 111 of file path_component.h.
|
inline |
Definition at line 115 of file path_component.h.
Definition at line 117 of file path_component.h.
| void impeller::LinearPathComponent::AppendPolylinePoints | ( | std::vector< Point > & | points | ) | const |
Definition at line 230 of file path_component.cc.
References p2.
Referenced by impeller::Path::CreatePolyline().
| std::vector< Point > impeller::LinearPathComponent::Extrema | ( | ) | const |
| std::optional< Vector2 > impeller::LinearPathComponent::GetEndDirection | ( | ) | const |
Definition at line 248 of file path_component.cc.
Referenced by impeller::Path::EndContour().
| std::optional< Vector2 > impeller::LinearPathComponent::GetStartDirection | ( | ) | const |
|
inline |
Definition at line 223 of file path_component.cc.
References impeller::LinearSolve(), p1, p2, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
| Point impeller::LinearPathComponent::p1 |
Definition at line 112 of file path_component.h.
Referenced by Extrema(), GetEndDirection(), GetStartDirection(), operator==(), impeller::PathBuilder::Shift(), Solve(), impeller::testing::TEST(), and impeller::Path::WritePolyline().
| Point impeller::LinearPathComponent::p2 |
Definition at line 113 of file path_component.h.
Referenced by AppendPolylinePoints(), Extrema(), GetEndDirection(), GetStartDirection(), operator==(), Solve(), impeller::testing::TEST(), and impeller::Path::WritePolyline().