fart/shapes/Sphere.h
Josh Holtrop 18c0c8d45f added diffuse and specular colors to Material, switched all "private:" to "protected:"
git-svn-id: svn://anubis/fart/trunk@69 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-01-30 02:26:46 +00:00

21 lines
314 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);
protected:
double m_radius;
double m_radius2;
};
#endif