#include <psys_spring.h>
Public Types | |
typedef types::math_types | math_types |
typedef math_types::real_type | real_type |
typedef math_types::vector3_type | vector3_type |
typedef types::particle_type | particle_type |
typedef types::system_type | system_type |
Public Member Functions | |
particle_type * | A () |
particle_type * | B () |
particle_type const * | A () const |
particle_type const * | B () const |
real_type & | damping () |
real_type const & | damping () const |
real_type & | stiffness () |
real_type const & | stiffness () const |
real_type const & | rest_length () const |
Spring () | |
virtual | ~Spring () |
void | init (particle_type *A, particle_type *B) |
void | set_rest_length (real_type l) |
void | set_critical_damped (real_type const &tau) |
void | apply () |
Protected Attributes | |
particle_type * | m_A |
Pointer to one of the affected particles. | |
particle_type * | m_B |
Pointer to one other affected particle. | |
real_type | m_length |
Rest length between the two particles. | |
real_type | m_length_sqr |
Rest length squared. | |
real_type | m_k |
Spring Constant. | |
real_type | m_c |
Damping Constant. |
typedef types::math_types OpenTissue::psys::Spring< types >::math_types |
typedef types::particle_type OpenTissue::psys::Spring< types >::particle_type |
typedef math_types::real_type OpenTissue::psys::Spring< types >::real_type |
typedef types::system_type OpenTissue::psys::Spring< types >::system_type |
typedef math_types::vector3_type OpenTissue::psys::Spring< types >::vector3_type |
OpenTissue::psys::Spring< types >::Spring | ( | ) | [inline] |
virtual OpenTissue::psys::Spring< types >::~Spring | ( | ) | [inline, virtual] |
particle_type* OpenTissue::psys::Spring< types >::A | ( | ) | [inline] |
particle_type const* OpenTissue::psys::Spring< types >::A | ( | ) | const [inline] |
void OpenTissue::psys::Spring< types >::apply | ( | ) | [inline] |
particle_type* OpenTissue::psys::Spring< types >::B | ( | ) | [inline] |
particle_type const* OpenTissue::psys::Spring< types >::B | ( | ) | const [inline] |
real_type& OpenTissue::psys::Spring< types >::damping | ( | ) | [inline] |
real_type const& OpenTissue::psys::Spring< types >::damping | ( | ) | const [inline] |
void OpenTissue::psys::Spring< types >::init | ( | particle_type * | A, | |
particle_type * | B | |||
) | [inline] |
Init Spring.
A | ||
B |
real_type const& OpenTissue::psys::Spring< types >::rest_length | ( | ) | const [inline] |
void OpenTissue::psys::Spring< types >::set_critical_damped | ( | real_type const & | tau | ) | [inline] |
tau |
void OpenTissue::psys::Spring< types >::set_rest_length | ( | real_type | l | ) | [inline] |
Set Rest Length.
length |
real_type const& OpenTissue::psys::Spring< types >::stiffness | ( | ) | const [inline] |
real_type& OpenTissue::psys::Spring< types >::stiffness | ( | ) | [inline] |
particle_type* OpenTissue::psys::Spring< types >::m_A [protected] |
Pointer to one of the affected particles.
particle_type* OpenTissue::psys::Spring< types >::m_B [protected] |
Pointer to one other affected particle.
real_type OpenTissue::psys::Spring< types >::m_c [protected] |
Damping Constant.
real_type OpenTissue::psys::Spring< types >::m_k [protected] |
Spring Constant.
real_type OpenTissue::psys::Spring< types >::m_length [protected] |
Rest length between the two particles.
real_type OpenTissue::psys::Spring< types >::m_length_sqr [protected] |
Rest length squared.