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