PxVehicleFixedSizeLookupTable#

Defined in include/vehicle2/PxVehicleParams.h

template<class T, unsigned int NB_ELEMENTS>
class PxVehicleFixedSizeLookupTable#

Express a function as a sequence of points {(x, y)} that form a piecewise polynomial.

Public Functions

inline PxVehicleFixedSizeLookupTable()#
inline PxVehicleFixedSizeLookupTable(
const PxVehicleFixedSizeLookupTable &src,
)#
inline ~PxVehicleFixedSizeLookupTable()#
inline PxVehicleFixedSizeLookupTable &operator=(
const PxVehicleFixedSizeLookupTable &src,
)#
inline bool addPair(const PxReal x, const T y)#

Add one more point to create one more polynomial segment of a piecewise polynomial.

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.

Parameters:

x[in] is the value on the x-axis of the piecewise polynomial.

Returns:

Returns the y value that corresponds to the input x.

inline void clear()#
inline bool isValid() const#

Public Members

PxReal xVals[NB_ELEMENTS]#
T yVals[NB_ELEMENTS]#
PxU32 nbDataPairs#