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_;
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
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)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual scalar distanceToSurfaces(const vector &p) const
virtual ~cylinderImplicitFunction()=default