CellModules
PhysicsConstraints::SymAxis Class Reference

Represents a symmetrical axis constraint. More...

Public Member Functions

 SymAxis (MecaCell::Vec a, MecaCell::Vec o, double l, double mef, bool fs, double av, std::function< double(double, MecaCell::Vec, MecaCell::Vec)> rf)
 Constructor for SymAxis. More...
 

Public Attributes

MecaCell::Vec axis
 
MecaCell::Vec origin
 
double length
 
double maxEffectRadius
 
bool fitShape
 
double attraction_velocity
 
std::function< double(double, MecaCell::Vec, MecaCell::Vec)> radiusFunction
 

Detailed Description

Represents a symmetrical axis constraint.

Definition at line 58 of file PhysicsConstraints.hpp.

Constructor & Destructor Documentation

◆ SymAxis()

PhysicsConstraints::SymAxis::SymAxis ( MecaCell::Vec  a,
MecaCell::Vec  o,
double  l,
double  mef,
bool  fs,
double  av,
std::function< double(double, MecaCell::Vec, MecaCell::Vec)>  rf 
)
inline

Constructor for SymAxis.

Parameters
aAxis vector.
oOrigin point.
lLength of the axis.
mefMaximum effect radius.
fsIndicates if the shape should fit.
avAttraction velocity.
rfRadius function.

Definition at line 79 of file PhysicsConstraints.hpp.

Member Data Documentation

◆ attraction_velocity

double PhysicsConstraints::SymAxis::attraction_velocity

Attraction velocity

Definition at line 65 of file PhysicsConstraints.hpp.

◆ axis

MecaCell::Vec PhysicsConstraints::SymAxis::axis

Axis vector

Definition at line 60 of file PhysicsConstraints.hpp.

◆ fitShape

bool PhysicsConstraints::SymAxis::fitShape

Indicates if the shape should fit

Definition at line 64 of file PhysicsConstraints.hpp.

◆ length

double PhysicsConstraints::SymAxis::length

Length of the axis

Definition at line 62 of file PhysicsConstraints.hpp.

◆ maxEffectRadius

double PhysicsConstraints::SymAxis::maxEffectRadius

Maximum effect radius

Definition at line 63 of file PhysicsConstraints.hpp.

◆ origin

MecaCell::Vec PhysicsConstraints::SymAxis::origin

Origin point

Definition at line 61 of file PhysicsConstraints.hpp.

◆ radiusFunction

std::function<double(double, MecaCell::Vec, MecaCell::Vec)> PhysicsConstraints::SymAxis::radiusFunction

Radius function

Definition at line 66 of file PhysicsConstraints.hpp.


The documentation for this class was generated from the following file: