fart/shapes/Sphere.h

21 lines
312 B
C++

#ifndef SPHERE_H
#define SPHERE_H SPHERE_H
#include "Shape.h"
class Sphere : public Shape
{
public:
Sphere(double radius);
IntersectList intersect(const Ray & ray);
Vector getNormalAt(const Vector & pt);
private:
double m_radius;
double m_radius2;
};
#endif