Titan  v1.0
A high-performance CUDA-based physics simulation sandbox for robotics, physics, and reinforcement learning.
titan::Container Class Reference

#include <object.h>

Inheritance diagram for titan::Container:
titan::Beam titan::Cube titan::Lattice

Public Member Functions

virtual ~Container ()
 
void translate (const Vec &displ)
 
void rotate (const Vec &axis, double angle)
 
void setMassValues (double m)
 
void setSpringConstants (double k)
 
void setRestLengths (double len)
 
void fix ()
 
void add (Mass *m)
 
void add (Spring *s)
 
void add (Container *c)
 

Public Attributes

std::vector< Mass * > masses
 
std::vector< Spring * > springs
 

Constructor & Destructor Documentation

◆ ~Container()

virtual titan::Container::~Container ( )
inlinevirtual

Member Function Documentation

◆ add() [1/3]

void titan::Container::add ( Container c)

◆ add() [2/3]

void titan::Container::add ( Mass m)

◆ add() [3/3]

void titan::Container::add ( Spring s)

◆ fix()

void titan::Container::fix ( )

◆ rotate()

void titan::Container::rotate ( const Vec axis,
double  angle 
)

◆ setMassValues()

void titan::Container::setMassValues ( double  m)

◆ setRestLengths()

void titan::Container::setRestLengths ( double  len)

◆ setSpringConstants()

void titan::Container::setSpringConstants ( double  k)

◆ translate()

void titan::Container::translate ( const Vec displ)

Member Data Documentation

◆ masses

std::vector<Mass *> titan::Container::masses

◆ springs

std::vector<Spring *> titan::Container::springs

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