Node: Tetrahedron Constructors and Setting Functions, Next: Tetrahedron Net, Previous: Tetrahedron Data Members, Up: Tetrahedron
void Tetrahedron (void )
|
Default constructor |
Creates an empty Tetrahedron .
|
void Tetrahedron (const Point& p, const real diameter_of_triangle, [real angle_x = 0, [real angle_y = 0, [real angle_z = 0]]]) | Constructor |
Creates a Tetrahedron with its center at the origin.
The faces have enclosing circles of diameter
diameter_of_triangle. If any of angle_x, angle_y, or
angle_z is non-zero, the Tetrahedron is rotated by the
amounts specified around the corresponding axes. Finally, if p is
not the origin, the Tetrahedron is shifted such that
center comes to lie at p.
The center of a Tetrahedron t(origin, 3); t.draw();
Point P(1, 0, 1); Tetrahedron t(P, 2.75, 30, 32.5, 20); t.draw();
|
void set (const Point& p, const real diameter_of_triangle, [real angle_x = 0, [real angle_y = 0, [real angle_z = 0]]]) | Setting function |
Corresponds to the constructor above. |