40 #ifndef implicitFunction_cylinderImplicitFunction_H 41 #define implicitFunction_cylinderImplicitFunction_H 51 namespace implicitFunctions
108 return (-
mag(project_ & (
p - origin_)) + radius_)*scale_;
113 return -(project_ & (
p - origin_))*scale_;
118 return mag(
mag(project_ & (
p - origin_)) - radius_)*scale_;
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
TypeName("cylinder")
Runtime type information.
virtual scalar distanceToSurfaces(const vector &p) const
virtual vector grad(const vector &p) const
cylinderImplicitFunction(const point &origin, const scalar radius, const scalar scale, const vector &direction)
Construct from components.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
virtual ~cylinderImplicitFunction()=default
Destructor.
Tensor of scalars, i.e. Tensor<scalar>.
creates a infintite long cylinderImplicitFunction
Base class for implicit functions.
virtual scalar value(const vector &p) const