#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 29 of file path_component.h.
|
inline |
Definition at line 33 of file path_component.h.
Definition at line 35 of file path_component.h.
void impeller::LinearPathComponent::AppendPolylinePoints | ( | std::vector< Point > & | points | ) | const |
Definition at line 62 of file path_component.cc.
References p2.
std::vector< Point > impeller::LinearPathComponent::Extrema | ( | ) | const |
std::optional< Vector2 > impeller::LinearPathComponent::GetEndDirection | ( | ) | const |
Definition at line 80 of file path_component.cc.
Referenced by impeller::PathComponentEndDirectionVisitor::operator()().
std::optional< Vector2 > impeller::LinearPathComponent::GetStartDirection | ( | ) | const |
Definition at line 73 of file path_component.cc.
Referenced by impeller::PathComponentStartDirectionVisitor::operator()().
|
inline |
Definition at line 55 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 30 of file path_component.h.
Referenced by Extrema(), GetEndDirection(), GetStartDirection(), operator==(), Solve(), and impeller::testing::TEST().
Point impeller::LinearPathComponent::p2 |
Definition at line 31 of file path_component.h.
Referenced by AppendPolylinePoints(), Extrema(), GetEndDirection(), GetStartDirection(), operator==(), Solve(), and impeller::testing::TEST().