16 #ifndef SURGSIM_PHYSICS_SPRING_H 17 #define SURGSIM_PHYSICS_SPRING_H 54 size_t getNumNodes()
const;
58 size_t getNodeId(
size_t springNodeId)
const;
62 const std::vector<size_t>& getNodeIds()
const;
69 double scale = 1.0) = 0;
77 double scale = 1.0) = 0;
85 double scale = 1.0) = 0;
115 #endif // SURGSIM_PHYSICS_SPRING_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Eigen::SparseMatrix< double > SparseMatrix
A sparse matrix.
Definition: SparseMatrix.h:32
The state of an ode of 2nd order of the form with boundary conditions.
Definition: OdeState.h:38
std::vector< size_t > m_nodeIds
Node ids connected by this spring.
Definition: Spring.h:108
Definitions of useful sparse matrix functions.
Base class for all springs It handles the node ids to which it is connected and requires all derived ...
Definition: Spring.h:42
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
A dynamic size column vector.
Definition: Vector.h:68
Definitions of small fixed-size square matrix types.
Definitions of small fixed-size vector types.