#include <path_component.h>
Definition at line 39 of file path_component.h.
◆ LinearPathComponent() [1/2]
impeller::LinearPathComponent::LinearPathComponent |
( |
| ) |
|
|
inline |
◆ LinearPathComponent() [2/2]
impeller::LinearPathComponent::LinearPathComponent |
( |
Point |
ap1, |
|
|
Point |
ap2 |
|
) |
| |
|
inline |
◆ AppendPolylinePoints()
void impeller::LinearPathComponent::AppendPolylinePoints |
( |
std::vector< Point > & |
points | ) |
const |
◆ Extrema()
std::vector< Point > impeller::LinearPathComponent::Extrema |
( |
| ) |
const |
◆ GetEndDirection()
std::optional< Vector2 > impeller::LinearPathComponent::GetEndDirection |
( |
| ) |
const |
Definition at line 140 of file path_component.cc.
140 {
142 return std::nullopt;
143 }
144 return (
p2 -
p1).Normalize();
145}
◆ GetStartDirection()
std::optional< Vector2 > impeller::LinearPathComponent::GetStartDirection |
( |
| ) |
const |
Definition at line 133 of file path_component.cc.
133 {
135 return std::nullopt;
136 }
137 return (
p1 -
p2).Normalize();
138}
◆ operator==()
◆ Solve()
Point impeller::LinearPathComponent::Solve |
( |
Scalar |
time | ) |
const |
Definition at line 115 of file path_component.cc.
115 {
116 return {
119 };
120}
static Scalar LinearSolve(Scalar t, Scalar p0, Scalar p1)
static double time(int loops, Benchmark *bench, Target *target)
◆ p1
Point impeller::LinearPathComponent::p1 |
◆ p2
Point impeller::LinearPathComponent::p2 |
The documentation for this struct was generated from the following files: