|
RavEngine
|
Express a function as a sequence of points {(x, y)} that form a piecewise polynomial. More...
#include <PxVehicleParams.h>
Public Member Functions | |
| PxVehicleFixedSizeLookupTable (const PxVehicleFixedSizeLookupTable &src) | |
| PxVehicleFixedSizeLookupTable & | operator= (const PxVehicleFixedSizeLookupTable &src) |
| PX_FORCE_INLINE bool | addPair (const PxReal x, const T y) |
| Add one more point to create one more polynomial segment of a piecewise polynomial. | |
| PX_FORCE_INLINE T | interpolate (const PxReal x) const |
| Identify the segment of the piecewise polynomial that includes x and compute the corresponding y value by linearly interpolating the gradient of the segment. | |
| void | clear () |
| PX_FORCE_INLINE bool | isValid () const |
Public Attributes | |
| PxReal | xVals [NB_ELEMENTS] |
| T | yVals [NB_ELEMENTS] |
| PxU32 | nbDataPairs |
Express a function as a sequence of points {(x, y)} that form a piecewise polynomial.
|
inline |
Identify the segment of the piecewise polynomial that includes x and compute the corresponding y value by linearly interpolating the gradient of the segment.
| [in] | x | is the value on the x-axis of the piecewise polynomial. |