pixled-lib
1.0
|
#include <geometry.h>
Public Member Functions | |
coordinate | operator() (led l, time t) const override |
Public Member Functions inherited from pixled::Function< LineDistance, coordinate, line, point > | |
Function (Fcts &&... fcts) | |
const base::Function< typename std::tuple_element< i, decltype(args)>::type::Type > & | arg () const |
std::tuple_element< i, decltype(args)>::type::Type | call (led l, time t) const |
Additional Inherited Members | |
Public Types inherited from pixled::Function< LineDistance, coordinate, line, point > | |
using | Type = typename base::Function< coordinate >::Type |
Public Types inherited from pixled::base::Function< coordinate > | |
typedef coordinate | Type |
Protected Member Functions inherited from pixled::Function< LineDistance, coordinate, line, point > | |
base::Function< coordinate > * | copy () const override |
Protected Attributes inherited from pixled::Function< LineDistance, coordinate, line, point > | |
std::tuple< const FctWrapper< Args >... > | args |
Computes the euclidian distance between a point and a line.
line | l |
point | p |
coordinate | distance between l and p |
Computes the value of this Function for led l
at time t
.
l | led |
t | time |
l
at time t
. Notice that evaluating a function usually requires the recursive evaluation of other Functions (that are actually parameters of this function) until a Constant is reached for example. Implements pixled::base::Function< coordinate >.