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

#include <object.h>

Inheritance diagram for titan::Cube:
titan::Container

Public Member Functions

 ~Cube ()
 
 Cube (const Vec &center, double side_length=1.0)
 
- Public Member Functions inherited from titan::Container
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

double _side_length
 
Vec _center
 
- Public Attributes inherited from titan::Container
std::vector< Mass * > masses
 
std::vector< Spring * > springs
 

Constructor & Destructor Documentation

◆ ~Cube()

titan::Cube::~Cube ( )
inline

◆ Cube()

titan::Cube::Cube ( const Vec center,
double  side_length = 1.0 
)

Member Data Documentation

◆ _center

Vec titan::Cube::_center

◆ _side_length

double titan::Cube::_side_length

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