#include <geometry.h>
Computes the euclidian distance between two points.
- Parameters
-
- Return values
-
coordinate | distance between p1 and p2 |
- Examples
- pixled/signal/sawtooth.cpp, pixled/signal/sine.cpp, pixled/signal/square.cpp, and pixled/signal/triangle.cpp.
◆ operator()()
float pixled::geometry::Distance::operator() |
( |
led |
l, |
|
|
time |
t |
|
) |
| const |
|
overridevirtual |
Computes the value of this Function for led l
at time t
.
- Parameters
-
- 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< coordinate >.
The documentation for this class was generated from the following files:
- src/pixled/geometry/geometry.h
- src/pixled/geometry/geometry.cpp