NTRT Simulator
Version: Master
|
#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 |
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.
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.
[in] | radius | the sphere's radius; must be non-negative |
[in] | density | the sphere's density; must be non-negative |
Definition at line 36 of file tgSphere.cpp.
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.