CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
IVolume.hpp
1 /*
2  * (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
3  *
4  * This software is distributed under the terms of the GNU General Public
5  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6  * the license.
7  */
8 
9 #pragma once
10 
11 #include <corsika/framework/geometry/Point.hpp>
12 
13 namespace corsika {
14 
15  class IVolume {
16 
17  public:
19  virtual bool contains(Point const& p) const = 0;
20 
21  virtual ~IVolume() = default;
22  };
23 
24 } // namespace corsika
`, since they are used everywhere as integral part of the framework.
virtual bool contains(Point const &p) const =0
returns true if the Point p is within the volume