![]() |
MechSys
1.0
Computing library for simulations in continuum and discrete mechanics
|
#include <torus.h>
Public Member Functions | |
Torus (Vec3_t const *X0, Vec3_t const *X1, Vec3_t const *X2) | |
X0: Center of the torus Xi: endpoints of edge. | |
Torus (Vec3_t const &X0, Vec3_t const &X1, Vec3_t const &X2) | |
X0: Center of the torus Xi: endpoints of edge. | |
void | Draw (std::ostream &os, double Radius=1.0, char const *Color="Blue", bool BPY=false) |
Public Attributes | |
Vec3_t const * | X0 |
Center of the Torus. | |
Vec3_t const * | X1 |
Right vector of the torus. | |
Vec3_t const * | X2 |
Left vector of the torus. | |
double | R |
Internal radius of the torus. |
Torus::Torus | ( | Vec3_t const * | X0, |
Vec3_t const * | X1, | ||
Vec3_t const * | X2 | ||
) | [inline] |
X0: Center of the torus Xi: endpoints of edge.
Torus::Torus | ( | Vec3_t const & | X0, |
Vec3_t const & | X1, | ||
Vec3_t const & | X2 | ||
) | [inline] |
X0: Center of the torus Xi: endpoints of edge.
void Torus::Draw | ( | std::ostream & | os, |
double | Radius = 1.0 , |
||
char const * | Color = "Blue" , |
||
bool | BPY = false |
||
) | [inline] |
double Torus::R |
Internal radius of the torus.