solution to assignment 2.2 b): surface normalsD
[MicroTrace.git] / Sphere.hxx
1 #ifndef SPHERE_HXX
2 #define SPHERE_HXX
3
4 #include "Primitive.hxx"
5
6
7 class Sphere : public Primitive
8 {
9 public:
10 Sphere(const Vec3f& center, float radius, Shader* shader);
11 virtual ~Sphere();
12
13 virtual bool Intersect(Ray& ray);
14 virtual Vec3f GetNormal(Ray& ray);
15 private:
16 Vec3f m_center;
17 float m_radius;
18 };
19 #endif
This page took 0.043375 seconds and 5 git commands to generate.