QUGaR 0.0.4
|
Infinite cylinder base class. More...
#include <primitive_funcs_lib.hpp>
Public Member Functions | |
CylinderBase (real radius, const Point< 3 > &origin, const Point< 3 > &axis) | |
Constructor. | |
real | radius () const |
Gets the radius of the cylinder. | |
const Point< 3 > & | origin () const |
Gets the origin of the cylinder. | |
const Point< 3 > & | axis () const |
Gets the axis of the cylinder. | |
Static Protected Member Functions | |
static Point< 3 > | get_default_origin () |
Gets the default origin of the cylinder. It is set to the origin of the Cartesian coordinate system. | |
static Point< 3 > | get_default_axis () |
Gets the default axis of the cylinder. It is set to the z-axis of the Cartesian coordinate system. | |
Protected Attributes | |
real | radius_ |
Radius of the cylinder. | |
Point< 3 > | origin_ |
Origin of the cylinder. | |
Point< 3 > | axis_ |
Axis of the axis. | |
Infinite cylinder base class.
The cylinder is defined by its radius, origin, and axis.
The function presents a negative sign around the cylinder's axis, and positive far away. At a radius distance from the cylinder's axis, the function vanishes.
|
nodiscard |
Gets the axis of the cylinder.
|
staticnodiscardprotected |
Gets the default axis of the cylinder. It is set to the z-axis of the Cartesian coordinate system.
|
staticnodiscardprotected |
Gets the default origin of the cylinder. It is set to the origin of the Cartesian coordinate system.
|
nodiscard |
Gets the origin of the cylinder.
|
nodiscard |
Gets the radius of the cylinder.
|
protected |
Axis of the axis.
|
protected |
Origin of the cylinder.
|
protected |
Radius of the cylinder.