24#ifndef INDICATOR_BASE_F_2D_H
25#define INDICATOR_BASE_F_2D_H
96 virtual bool operator() (
bool output[1],
const S input[2]);
119 std::shared_ptr<IndicatorF2D<S>>
_f;
122 bool operator() (
bool output[1],
const S input[2]);
GenericF is a base class, that can represent continuous as well as discrete functions.
IndicatorF1D is an application from .
IndicatorF1D< S > & operator-(IndicatorF1D< S > &rhs)
IndicatorF1D< S > & operator*(IndicatorF1D< S > &rhs)
virtual bool operator()(const S input[])
Indicator specific function operator overload.
virtual Vector< S, 1 > & getMin()
virtual Vector< S, 1 > & getMax()
IndicatorF1D< S > & operator+(IndicatorF1D< S > &rhs)
IndicatorF2D is an application from .
virtual bool distance(S &distance, const Vector< S, 2 > &origin, S precision, const Vector< S, 2 > &direction)
returns false or true and pos. distance if there was one found for an given origin and direction
virtual Vector< S, 2 > surfaceNormal(const Vector< S, 2 > &pos, const S meshSize)
Return surface normal.
virtual Vector< S, 2 > & getMin()
virtual bool operator()(bool output[1], const S input[2])
Returns true if input is inside the indicator.
virtual bool normal(Vector< S, 2 > &normal, const Vector< S, 2 > &origin, const Vector< S, 2 > &direction, int iC=-1)
returns true and the normal if there was one found for an given origin and direction
virtual Vector< S, 2 > & getMax()
virtual S signedDistance(const Vector< S, 2 > &input)
Returns signed distance to the nearest point on the indicator surface.
bool isInsideBox(Vector< S, 2 > point)
Returns true if point is inside a cube with corners _myMin and _myMax
IndicatorIdentity2D(std::shared_ptr< IndicatorF2D< S > > f)
bool operator()(bool output[1], const S input[2])
Returns true if input is inside the indicator.
std::shared_ptr< IndicatorF2D< S > > _f
The description of a generic interface for all functor classes – header file.
Top level namespace for all of OpenLB.
efficient implementation of a vector class