Git Umzug
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#ifndef FUNCTION3D_H
|
||||
#define FUNCTION3D_H
|
||||
|
||||
#include "blitz/array.h"
|
||||
#include <iostream> // ostream
|
||||
|
||||
// Abstract base class for a 3d function
|
||||
// - can provide an element of the return vector (direction: x, y, z)
|
||||
// - can prodvie whole vector
|
||||
class Function3d {
|
||||
public:
|
||||
virtual ~Function3d() {};
|
||||
|
||||
virtual double getValue(double x, double y, double z, int cart_axis) const = 0;
|
||||
virtual blitz::TinyVector<double ,3> getValue(double x, double y, double z) const = 0;
|
||||
|
||||
double getValue(const blitz::TinyVector<double, 3>& x, int cart_axis) const;
|
||||
blitz::TinyVector<double, 3> getValue(const blitz::TinyVector<double, 3>& x) const;
|
||||
|
||||
friend std::ostream & operator << (std::ostream &out, const Function3d& function);
|
||||
virtual void print(std::ostream &out) const;
|
||||
};
|
||||
|
||||
#endif /* FUNCTION3D_H */
|
||||
Reference in New Issue
Block a user