mpri-graphics-project/tests/TestImplicitSphere.hpp
Théophile Bastian 52ca47cde6 Marching: add test implicit surface and main
The test surface is the sphere TestImplicitSphere
2018-02-11 20:23:21 +01:00

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