A pixled::Function example usage. A pixled::Function::call() helper function example usage is also presented.
#include "pixled.h"
class F :
public pixled::Function<F, pixled::point, pixled::point, pixled::time, float> {
public:
using Function<F, pixled::point, pixled::point, pixled::time, float>::Function;
this->call<0>(l, t).
x * this->call<2>(l, t) + this->call<1>(l, t),
this->call<0>(l, t).y
};
}
};
F build_f() {
return F(
time_fct,
);
}
int main(int argc, char** argv) {
F f = build_f();
}
Definition: function.h:349
virtual R operator()(led l, time t) const =0
Definition: geometry.h:13
Definition: animation.cpp:3
unsigned long time
Definition: time.h:10
Definition: geometry.h:23
coordinate x
Definition: geometry.h:27