InVoxel() for all Primitives, including fix for Triangle::CalcBounds()
[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 virtual Box CalcBounds();
16 virtual bool InVoxel(const Box& box);
17 private:
18 Vec3f m_center;
19 float m_radius;
20 };
21 #endif
This page took 0.049109 seconds and 5 git commands to generate.