2018-02-11 20:23:07 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../Implicit.hpp"
|
|
|
|
|
|
|
|
class TestImplicitSphere: public ImplicitSurface {
|
|
|
|
public:
|
|
|
|
TestImplicitSphere(const Point& center, double r):
|
2018-02-12 11:37:38 +01:00
|
|
|
ImplicitSurface(center), radius(r) {}
|
2018-02-11 20:23:07 +01:00
|
|
|
virtual double operator()(double x, double y, double z) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
double radius;
|
|
|
|
};
|