pixled-lib  1.0
Public Member Functions | List of all members
pixled::geometry::Line Class Reference

#include <geometry.h>

Inheritance diagram for pixled::geometry::Line:
Inheritance graph
[legend]
Collaboration diagram for pixled::geometry::Line:
Collaboration graph
[legend]

Public Member Functions

line operator() (led l, time t) const override
 
- Public Member Functions inherited from pixled::Function< Line, line, coordinate, coordinate, coordinate >
 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< Line, line, coordinate, coordinate, coordinate >
using Type = typename base::Function< line >::Type
 
- Public Types inherited from pixled::base::Function< R >
typedef R Type
 
- Protected Member Functions inherited from pixled::Function< Line, line, coordinate, coordinate, coordinate >
base::Function< line > * copy () const override
 
- Protected Attributes inherited from pixled::Function< Line, line, coordinate, coordinate, coordinate >
std::tuple< const FctWrapper< Args >... > args
 

Detailed Description

Functionnal line definition.

Notice the difference with pixled::line, that is a fundamental type, returned by this Line Function.

Contrary to pixled::line, a Line is defined from dynamic Functions that return the pixled::line parameters.

Parameters
coordinatea
coordinateb
coordinatec
Return values
lineline defined by a*x + b*y + c=0

Member Function Documentation

◆ operator()()

line pixled::geometry::Line::operator() ( led  l,
time  t 
) const
overridevirtual

Computes the value of this Function for led l at time t.

Parameters
lled
ttime
Returns
Result of this Function, evaluated on led 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< R >.


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