ABLATE Source Documentation  0.12.34
difference.hpp
1 #ifndef ABLATELIBRARY_DIFFERENCE_HPP
2 #define ABLATELIBRARY_DIFFERENCE_HPP
3 
4 #include "geometry.hpp"
5 
6 namespace ablate::mathFunctions::geom {
7 
8 class Difference : public Geometry {
9  private:
10  const std::shared_ptr<ablate::mathFunctions::geom::Geometry> minuend;
11  const std::shared_ptr<ablate::mathFunctions::geom::Geometry> subtrahend;
12 
13  public:
14  explicit Difference(std::shared_ptr<ablate::mathFunctions::geom::Geometry> minuend, std::shared_ptr<ablate::mathFunctions::geom::Geometry> subtrahend,
15  const std::shared_ptr<mathFunctions::MathFunction>& insideValues = {}, const std::shared_ptr<mathFunctions::MathFunction>& outsideValues = {});
16 
17  bool InsideGeometry(const double* xyz, const int& ndims, const double& time) const override;
18 };
19 } // namespace ablate::mathFunctions::geom
20 
21 #endif // ABLATELIBRARY_DIFFERENCE_HPP
Definition: difference.hpp:8
bool InsideGeometry(const double *xyz, const int &ndims, const double &time) const override
Definition: difference.cpp:9
Definition: geometry.hpp:9