Titan
v1.0
A high-performance CUDA-based physics simulation sandbox for robotics, physics, and reinforcement learning.
|
#include <object.h>
Public Member Functions | |
~Cube () | |
Cube (const Vec ¢er, 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 |
|
inline |
titan::Cube::Cube | ( | const Vec & | center, |
double | side_length = 1.0 |
||
) |
Vec titan::Cube::_center |
double titan::Cube::_side_length |