QUGaR 0.0.4
|
Infinite cylinder. More...
#include <primitive_funcs_lib.hpp>
Public Member Functions | |
Cylinder (real radius) | |
Constructor. | |
Cylinder (real radius, const Point< 3 > &origin) | |
Constructor. | |
Cylinder (real radius, const Point< 3 > &origin, const Point< 3 > &axis) | |
Constructor. | |
![]() | |
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. | |
![]() | |
DomainFunc ()=default | |
Default constructor. | |
DomainFunc (const DomainFunc &)=default | |
Default copy constructor. | |
DomainFunc (DomainFunc &&)=default | |
Default move constructor. | |
DomainFunc & | operator= (const DomainFunc &)=default |
Default copy assignment operator. | |
DomainFunc & | operator= (DomainFunc &&)=default |
Default move assignment operator. | |
virtual | ~DomainFunc ()=default |
Default virtual destructor. | |
virtual Value< real > | operator() (const Point< dim > &point) const =0 |
Evaluator operator. | |
virtual Value< Interval< dim > > | operator() (const Point< dim, Interval< dim > > &point) const =0 |
Evaluator operator. | |
virtual Gradient< real > | grad (const Point< dim > &point) const =0 |
Gradient evaluator operator. | |
virtual Gradient< Interval< dim > > | grad (const Point< dim, Interval< dim > > &point) const =0 |
Gradient evaluator operator. | |
virtual Hessian< real > | hessian (const Point< dim > &point) const =0 |
Hessian evaluator operator. | |
Public Attributes | |
declare_impl_func_virtual_interface | |
Static Public Attributes | |
static const int | dim = 3 |
![]() | |
static const int | num_hessian = dim * (dim + 1) / 2 |
Number of Hessian (symmetric) components. | |
Additional Inherited Members | |
![]() | |
template<int N> | |
using | Interval = ::algoim::Interval<N> |
Algoim's interval alias. | |
template<typename T > | |
using | Value = std::conditional_t<range == 1, T, Vector<T, range>> |
Value type. | |
template<typename T > | |
using | Gradient = Vector<Value<T>, dim> |
Gradient type. | |
template<typename T > | |
using | Hessian = Vector<Value<T>, num_hessian> |
Hessian (symmetric type). | |
![]() | |
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. | |
![]() | |
real | radius_ |
Radius of the cylinder. | |
Point< 3 > | origin_ |
Origin of the cylinder. | |
Point< 3 > | axis_ |
Axis of the axis. | |
Infinite cylinder.
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.
|
explicit |
qugar::impl::funcs::Cylinder::declare_impl_func_virtual_interface |
|
static |