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

#include <object.h>

Inheritance diagram for titan::Lattice:
titan::Container

Public Member Functions

 ~Lattice ()
 
 Lattice (const Vec &center, 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
 

Constructor & Destructor Documentation

◆ ~Lattice()

titan::Lattice::~Lattice ( )
inline

◆ Lattice()

titan::Lattice::Lattice ( const Vec center,
const Vec dims,
int  nx = 10,
int  ny = 10,
int  nz = 10 
)

Member Data Documentation

◆ _center

Vec titan::Lattice::_center

◆ _dims

Vec titan::Lattice::_dims

◆ nx

int titan::Lattice::nx

◆ ny

int titan::Lattice::ny

◆ nz

int titan::Lattice::nz

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