NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgSphere::Config Struct Reference

#include <tgSphere.h>

Public Member Functions

 Config (double r=0.5, double d=1.0, double f=1.0, double rf=0.0, double res=0.2)
 

Public Attributes

const double radius
 
const double density
 
const double friction
 
const double rollFriction
 
const double restitution
 

Detailed Description

Holds two public member variables, density and radius, describing a sphere configuration. A constructor allows them to be set together and to default.

Definition at line 52 of file tgSphere.h.

Constructor & Destructor Documentation

tgSphere::Config::Config ( double  r = 0.5,
double  d = 1.0,
double  f = 1.0,
double  rf = 0.0,
double  res = 0.2 
)

Initialize with radius and density, which may default.

Parameters
[in]radiusthe sphere's radius; must be non-negative
[in]densitythe sphere's density; must be non-negative

Definition at line 36 of file tgSphere.cpp.

Member Data Documentation

const double tgSphere::Config::density

The sphere's density; must be nonnegative.

Definition at line 71 of file tgSphere.h.

const double tgSphere::Config::friction

The sphere's friction; must be greater than or equal to 0

Definition at line 75 of file tgSphere.h.

const double tgSphere::Config::radius

The sphere's radius; must be nonnegative.

Definition at line 68 of file tgSphere.h.

const double tgSphere::Config::restitution

The sphere's coefficient of restitution; must be between 0 and 1 (inclusive).

Definition at line 83 of file tgSphere.h.

const double tgSphere::Config::rollFriction

The sphere's rolling friction; must be greater than or equal to 0

Definition at line 79 of file tgSphere.h.


The documentation for this struct was generated from the following files: