15 lines
338 B
C++
15 lines
338 B
C++
|
#pragma once
|
||
|
|
||
|
#include "../Implicit.hpp"
|
||
|
|
||
|
class TestImplicitSphere: public ImplicitSurface {
|
||
|
public:
|
||
|
TestImplicitSphere(const Point& center, double r):
|
||
|
center(center), radius(r) {}
|
||
|
virtual double operator()(double x, double y, double z) const;
|
||
|
|
||
|
private:
|
||
|
Point center;
|
||
|
double radius;
|
||
|
};
|