|
JPL Spatial
Sound spatialization and propagation library
|
#include <JPLSpatial/DistanceAttenuation.h>
Classes | |
| struct | Point |
Public Member Functions | |
| JPL_INLINE void | SortPoints () |
| Sort curve points by distance. This should be called after changing Points. | |
| JPL_INLINE float | Evaluate (float distance) const final |
Evaluate curve at distance | |
Public Member Functions inherited from JPL::AttenuationFunction | |
| virtual | ~AttenuationFunction ()=default |
Public Attributes | |
| std::pmr::vector< Point > | Points { GetDefaultMemoryResource() } |
| Curve points that should sorted by distance. | |
Attenuation curve constructed from a set of points, each point can have a different function used to evaluate the following segment of the curve, up to the next point.
|
finalvirtual |
Evaluate curve at distance
Implements JPL::AttenuationFunction.
|
inline |
Sort curve points by distance. This should be called after changing Points.
| std::pmr::vector<Point> JPL::AttenuationCurve::Points { GetDefaultMemoryResource() } |
Curve points that should sorted by distance.