code for assignment 2
[MicroTrace.git] / InfinitePlane.hxx
diff --git a/InfinitePlane.hxx b/InfinitePlane.hxx
new file mode 100644 (file)
index 0000000..06a5aa0
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef INFINITE_PLANE_HXX
+#define INFINITE_PLANE_HXX
+
+#include "Primitive.hxx"
+
+class InfinitePlane : public Primitive
+{
+public:
+  InfinitePlane(const Vec3f& a, const Vec3f & n, Shader* shader);
+  virtual ~InfinitePlane();
+  
+  virtual bool Intersect(Ray& ray);
+  virtual Vec3f GetNormal(Ray& ray);
+private:
+  Vec3f m_a, m_n;
+};
+#endif
This page took 0.023372 seconds and 4 git commands to generate.