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

#include <mass.h>

Public Member Functions

 Mass (const Vec &position, double mass=0.1, bool fixed=false)
 
void setExternalForce (const Vec &v)
 
Vec acceleration ()
 

Public Attributes

double m
 
double T
 
Vec pos
 
Vec vel
 

Friends

class Simulation
 
class Spring
 
struct CUDA_SPRING
 
struct CUDA_MASS
 
class Container
 
class Lattice
 
class Beam
 
class Cube
 

Constructor & Destructor Documentation

◆ Mass()

titan::Mass::Mass ( const Vec position,
double  mass = 0.1,
bool  fixed = false 
)

Member Function Documentation

◆ acceleration()

Vec titan::Mass::acceleration ( )
inline

◆ setExternalForce()

void titan::Mass::setExternalForce ( const Vec v)
inline

Friends And Related Function Documentation

◆ Beam

friend class Beam
friend

◆ Container

friend class Container
friend

◆ Cube

friend class Cube
friend

◆ CUDA_MASS

friend struct CUDA_MASS
friend

◆ CUDA_SPRING

friend struct CUDA_SPRING
friend

◆ Lattice

friend class Lattice
friend

◆ Simulation

friend class Simulation
friend

◆ Spring

friend class Spring
friend

Member Data Documentation

◆ m

double titan::Mass::m

◆ pos

Vec titan::Mass::pos

◆ T

double titan::Mass::T

◆ vel

Vec titan::Mass::vel

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