20 lines
266 B
C++
20 lines
266 B
C++
|
|
#ifndef SPHERE_H
|
|
#define SPHERE_H SPHERE_H
|
|
|
|
#include "Shape.h"
|
|
|
|
class Sphere : public Shape
|
|
{
|
|
public:
|
|
Sphere(double radius);
|
|
Solver::Result intersect(const Ray & ray);
|
|
|
|
private:
|
|
double m_radius;
|
|
double m_radius2;
|
|
};
|
|
|
|
#endif
|
|
|