The math
component provides various classes and static functions for commonly
used math operations.
Table of Contents
The bezier
header provides a templated implementation of cubic bezier curves
and rational cubic bezier curves. Intended use for these templated functions is
on raw floating point values or on the associated Vector2d class.
The Fast Math
header provides a set of static functions which implement
optimized approximations of the following functions:
along with some utility functions:
The gaussian
class provides an implementation of the gaussian function:
Math
y(t)= \alpha e^{ -\frac{ (t-\beta)^2 }{ 2\gamma^2 } }
The class allows for dynamically changing the
The RangeMapper
provides a class which allows you to map from a configurable
input range to a standardized output range of [-1,1].
The Vector2d
provides a container for a 2-dimensional vector with associated
math operations implemented.
The example showcases some of the math functionality provided by
the math
component.
idf.py add-dependency "espp/math^1.0.3"