mpri-graphics-project/tests/TestImplicitSphere.hpp

15 lines
338 B
C++
Raw Normal View History

#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;
};