Oxygen Engine
Modern C++ 3D Engine using OpenGL
|
General purpose curve (can be used for gradients, animations, etc...) More...
#include <OxygenEngine/util/curve.h>
Public Types | |
using | Point = CurvePoint< V, T > |
Public Member Functions | |
constexpr V | eval (const T x) const |
Compute a value on the curve based on control points. | |
Public Attributes | |
std::vector< Point > | control_points |
General purpose curve (can be used for gradients, animations, etc...)
Example with an int
You can use any type for V, but you need to make sure the class overloads operators addition between objects and multiplication with a float
position
|
inlineconstexpr |
Compute a value on the curve based on control points.
x | value of the abscissa |