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