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

#include <tgBox.h>

Public Member Functions

 Config (double w=1.0, double h=1.0, double d=1.0, double f=1.0, double rf=0.0, double res=0.2)
 

Public Attributes

const double width
 
const double height
 
const double density
 
const double friction
 
const double rollFriction
 
const double restitution
 

Detailed Description

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

Definition at line 52 of file tgBox.h.

Constructor & Destructor Documentation

tgBox::Config::Config ( double  w = 1.0,
double  h = 1.0,
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 box's radius; must be non-negative
[in]densitythe box's density; must be non-negative

Definition at line 36 of file tgBox.cpp.

Member Data Documentation

const double tgBox::Config::density

The box's density; must be nonnegative.

Definition at line 74 of file tgBox.h.

const double tgBox::Config::friction

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

Definition at line 78 of file tgBox.h.

const double tgBox::Config::height

The box's height; must be nonnegative.

Definition at line 71 of file tgBox.h.

const double tgBox::Config::restitution

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

Definition at line 86 of file tgBox.h.

const double tgBox::Config::rollFriction

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

Definition at line 82 of file tgBox.h.

const double tgBox::Config::width

The box's width; must be nonnegative.

Definition at line 68 of file tgBox.h.


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