Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
lampda::common::curves::LinearCurve< T, U, maxSize > Class Template Reference

Given a set of points, will fit multiple linear segments to it. More...

#include <curves.h>

Public Types

using point_t = Point< T, U >
 point in the linear curve
 

Public Member Functions

template<size_t N>
 LinearCurve (const std::array< point_t, N > &points)
 Build a curve from a set of points.
 
U sample (const T x) const
 Sample a point Y from a given x.
 

Detailed Description

template<typename T, typename U, size_t maxSize = 24>
class lampda::common::curves::LinearCurve< T, U, maxSize >

Given a set of points, will fit multiple linear segments to it.

Parameters
[in]TType of X coordinates
[in]Utype of Y coordinates
[in]maxSizemax size of the given array (deduced)

The documentation for this class was generated from the following file: