Go to the documentation of this file.
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_;
Base class for implicit functions.
virtual scalar value(const vector &p) const
creates a infintite long cylinderImplicitFunction
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual vector grad(const vector &p) const
cylinderImplicitFunction(const point &origin, const scalar radius, const scalar scale, const vector &direction)
Construct from components.
TypeName("cylinder")
Runtime type information.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual scalar distanceToSurfaces(const vector &p) const
virtual ~cylinderImplicitFunction()=default
Destructor.