|
KiCad PCB EDA Suite
|
Interpolates known relative points along a track using linear distance. More...
#include <diff_phase_skew_tool.h>
Public Member Functions | |
| KnownValueInterpolator (const std::vector< KNOWN_RELATIVE_POINT > &pts) | |
| std::optional< std::pair< double, double > > | ValueAt (const double s) |
Private Attributes | |
| const std::vector< KNOWN_RELATIVE_POINT > & | m_pts |
| std::size_t | m_idx { 0 } |
Interpolates known relative points along a track using linear distance.
It is optimised to only support calling ValueAt with monotonically increasing values of s.
Definition at line 148 of file diff_phase_skew_tool.h.
|
inlineexplicit |
Definition at line 151 of file diff_phase_skew_tool.h.
References m_pts.
|
inline |
Definition at line 156 of file diff_phase_skew_tool.h.
References EPS, m_idx, and m_pts.
Referenced by DIFF_PHASE_SKEW_TOOL::buildDiffOverlaySegments().
|
private |
Definition at line 203 of file diff_phase_skew_tool.h.
Referenced by ValueAt().
|
private |
Definition at line 202 of file diff_phase_skew_tool.h.
Referenced by KnownValueInterpolator(), and ValueAt().