Titan
v1.0
A high-performance CUDA-based physics simulation sandbox for robotics, physics, and reinforcement learning.
|
#include <object.h>
Public Member Functions | |
~Lattice () | |
Lattice (const Vec ¢er, const Vec &dims, int nx=10, int ny=10, int nz=10) | |
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 | |
int | nx |
int | ny |
int | nz |
Vec | _center |
Vec | _dims |
Public Attributes inherited from titan::Container | |
std::vector< Mass * > | masses |
std::vector< Spring * > | springs |
|
inline |
titan::Lattice::Lattice | ( | const Vec & | center, |
const Vec & | dims, | ||
int | nx = 10 , |
||
int | ny = 10 , |
||
int | nz = 10 |
||
) |
Vec titan::Lattice::_center |
Vec titan::Lattice::_dims |
int titan::Lattice::nx |
int titan::Lattice::ny |
int titan::Lattice::nz |