git-svn-id: svn://anubis/fart/branches/2009-02-23_Shape_IntersectList_Update@144 7f9b0f55-74a9-4bce-be96-3c2cd072584d
21 lines
338 B
C++
21 lines
338 B
C++
|
|
#ifndef SPHERE_H
|
|
#define SPHERE_H SPHERE_H
|
|
|
|
#include "Shape.h"
|
|
|
|
class Sphere : public Shape
|
|
{
|
|
public:
|
|
Sphere(double radius);
|
|
IntersectionList intersect(refptr<Shape> _this, const Ray & ray);
|
|
Vector getNormalAt(const Vector & pt);
|
|
|
|
protected:
|
|
double m_radius;
|
|
double m_radius2;
|
|
};
|
|
|
|
#endif
|
|
|