3D torus function base class. The function is defined by the torus center, axis, and major and inner radii. The function presents a negative sign inside the torus, and positive outside.
More...
#include <primitive_funcs_lib.hpp>
|
static Point< 3 > | get_default_center () |
| Gets the default center of the torus. It is set to the center of the Cartesian coordinate system.
|
|
static Point< 3 > | get_default_axis () |
| Gets the default axis of the torus. It is set to the z-axis of the Cartesian coordinate system.
|
|
3D torus function base class. The function is defined by the torus center, axis, and major and inner radii. The function presents a negative sign inside the torus, and positive outside.
◆ TorusBase()
qugar::impl::funcs::TorusBase::TorusBase |
( |
real | major_radius, |
|
|
real | minor_radius, |
|
|
const Point< 3 > & | center, |
|
|
const Point< 3 > & | axis ) |
Constructor.
- Parameters
-
major_radius | Radius of the major circle. |
minor_radius | Radius of the inner circle. |
center | Torus' center. |
axis | Torus' axis (perpendicular to the major circle plane). |
◆ axis()
const Point< 3 > & qugar::impl::funcs::TorusBase::axis |
( |
| ) |
const |
|
nodiscard |
Gets the axis of the plane.
- Returns
- real The plane's axis.
◆ center()
const Point< 3 > & qugar::impl::funcs::TorusBase::center |
( |
| ) |
const |
|
nodiscard |
Gets the center of the plane.
- Returns
- real The plane's center.
◆ get_default_axis()
static Point< 3 > qugar::impl::funcs::TorusBase::get_default_axis |
( |
| ) |
|
|
staticnodiscardprotected |
Gets the default axis of the torus. It is set to the z-axis of the Cartesian coordinate system.
◆ get_default_center()
static Point< 3 > qugar::impl::funcs::TorusBase::get_default_center |
( |
| ) |
|
|
staticnodiscardprotected |
Gets the default center of the torus. It is set to the center of the Cartesian coordinate system.
◆ major_radius()
real qugar::impl::funcs::TorusBase::major_radius |
( |
| ) |
const |
|
nodiscard |
Gets the major radius of the torus.
- Returns
- real The torus' major radius.
◆ minor_radius()
real qugar::impl::funcs::TorusBase::minor_radius |
( |
| ) |
const |
|
nodiscard |
Gets the minor radius of the torus.
- Returns
- real The torus' minor radius.
◆ axis_
Point<3> qugar::impl::funcs::TorusBase::axis_ |
|
protected |
◆ center_
Point<3> qugar::impl::funcs::TorusBase::center_ |
|
protected |
◆ major_radius_
real qugar::impl::funcs::TorusBase::major_radius_ |
|
protected |
Major radius of the torus.
◆ minor_radius_
real qugar::impl::funcs::TorusBase::minor_radius_ |
|
protected |
Minor radius of the torus.
The documentation for this class was generated from the following file: