Many, many more comments

This commit is contained in:
2024-12-04 17:15:04 +01:00
parent 8696517336
commit 03854339ca
100 changed files with 1702 additions and 49 deletions
+7
View File
@@ -3,14 +3,21 @@
#include "simulation/coordinates.h"
// class defining the miminmum requirement of a Geometry class
class Geometry {
public:
// check if Coordinate position is contained in the Geometry
virtual bool isInside(const Coordinate& position) const = 0;
};
// Geometry class for a cylinder
class Cylinder : public Geometry {
public:
// Constructor: takes the radius and height of the cylinder
// z always starts at 0
Cylinder(double radius, double height);
// check whether Coordinate position lies within the Cylinder
// i.e. z in (0,height), r in (0,radius)
bool isInside(const Coordinate& position) const;
private: