const double & restingR() const
Get the resting length between this and the next particle in the chain.
cv::Vec3d & pos()
Get the particle position.
Particle & operator+=(const cv::Vec3d &rhs)
Add a vector offset to the particle position.
const cv::Vec3d & pos() const
Get the particle position.
Particle(const cv::Vec3d &p)
Constructor with position initialization.
double & restingR()
Get the resting length between this and the next particle in the chain.
double & restingL()
Get the resting length between this and the previous particle in the chain.
Particle & operator*=(const double &rhs)
Scale all elements of the particle position.
const double & restingL() const
Get the resting length between this and the previous particle in the chain.