1#ifndef BODYMASSSPRINGDAMPER_HPP
2#define BODYMASSSPRINGDAMPER_HPP
16#include "../../../../src/core/BaseBody.hpp"
32 template<
typename cell_t,
class plugin_t>
Defines the PluginDelaunayMassSpringDamper class for Delaunay triangulation and mass-spring-damper ph...
Class for managing Delaunay triangulation and mass-spring-based physics.
void growth(double delta)
Increases the radius so that the volume is multiplied by 1 + delta.
double getBaseRadius() const
Gets the base radius.
BodyDelaunayMassSpringDamper(const MecaCell::Vector3D &pos=MecaCell::Vector3D::zero())
Constructor.
void setBaseRadius(double _baseRadius)
Sets the base radius.
double getAdhesion() const
Gets the adhesion coefficient.
void setAdhesion(double a)
Sets the adhesion coefficient.
void setDensity(double d)
Sets the density.
void setRadius(double rad)
Sets the radius.
void moveTo(const MecaCell::Vec &v)
Moves a cell to position v.
double getRadius()
Gets the radius.
double getBoundingBoxRadius() const
Gets the bounding box radius.
void setPosition(const Vec &p)
void setMass(const double m)
general purpose 3D vector/point class.
static Vector3D zero()
constructs a zero vector
Namespace for Delaunay triangulation and mass-spring-based physics-related classes and functions.
double cbrt(double x)
Computes the cube root of a number.
double pow(double base, double exponent)
Computes the power of a number.