#include <spring.hpp>
Definition at line 10 of file spring.hpp.
◆ Spring() [1/2]
MecaCell::Spring::Spring |
( |
| ) |
|
|
inline |
◆ Spring() [2/2]
MecaCell::Spring::Spring |
( |
const double & |
K, |
|
|
const double & |
C, |
|
|
const double & |
L |
|
) |
| |
|
inline |
◆ applyForce()
template<typename A , typename B >
void MecaCell::Spring::applyForce |
( |
A & |
a, |
|
|
B & |
b, |
|
|
const Vector3D & |
direction, |
|
|
double |
dt |
|
) |
| |
|
inline |
◆ computeForce()
double MecaCell::Spring::computeForce |
( |
double |
dt | ) |
|
|
inline |
◆ updateLength()
void MecaCell::Spring::updateLength |
( |
double |
l | ) |
|
|
inline |
double MecaCell::Spring::c = 1.0 |
double MecaCell::Spring::k = 1.0 |
◆ length
double MecaCell::Spring::length = 1.0 |
◆ minLengthRatio
double MecaCell::Spring::minLengthRatio = 0.5 |
◆ prevLength
double MecaCell::Spring::prevLength = 1.0 |
◆ restLength
double MecaCell::Spring::restLength = 1.0 |
The documentation for this struct was generated from the following file: