Function pfield::rateLimitStep

Function Documentation

inline Eigen::Vector3d pfield::rateLimitStep(const Eigen::Vector3d &prev, const Eigen::Vector3d &curr, double dMax)

Limits the step from a previous vector (typically velocity) to another vector.

Parameters:
  • prev – The previous vector

  • curr – The current vector to compute the step towards

  • dMax – The maximum allowed step size

Returns:

Eigen::Vector3d The rate-limited vector