|
Oxygen Engine
Modern C++ 3D Engine using OpenGL
|
Point on a curve, also called a keyframe in some contexts. More...
#include <OxygenEngine/util/curve.h>
Collaboration diagram for oe::util::CurvePoint< V, P >:Public Member Functions | |
| constexpr auto | operator<=> (const CurvePoint &other) const |
| Three-way comparison operator. | |
Static Public Member Functions | |
| static constexpr V | interpolate (const CurvePoint &begin_point, const CurvePoint &end_point, const P ratio) noexcept |
| Interpolate Value between two points. | |
Public Attributes | |
| P | position |
| Position of this point on the curve. | |
| V | value |
| Value of this point. | |
| CurveInterpolation | interpolation |
| How to interpolate between last point and this point. | |
Point on a curve, also called a keyframe in some contexts.
|
inlinestaticconstexprnoexcept |
Interpolate Value between two points.
| begin_point | Point to take value if the ratio is 0.0f |
| end_point | Point to take value if the ratio is 1.0f |
| ratio | Interpolation ratio |
|
inlineconstexpr |
Three-way comparison operator.
For comparison, only take the position into account
| other | Point to compare |