fart/shapes/Sphere.h
Josh Holtrop a1c81e5adc sphere drawing, but stretched horizontally... have to figure that out yet
git-svn-id: svn://anubis/fart/trunk@40 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-01-23 16:00:43 +00:00

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