projects
/
MicroTrace.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6abbe53068a0eb9dd45245ec10f527b8e6a72586
[MicroTrace.git]
/
Triangle.hxx
1
#ifndef TRIANGLE_HXX
2
#define TRIANGLE_HXX
3
4
#include "Primitive.hxx"
5
6
class Triangle : public Primitive
7
{
8
public:
9
Triangle(const Vec3f& a, const Vec3f& b, const Vec3f& c, Shader* shader);
10
virtual ~Triangle();
11
12
virtual bool Intersect(Ray& ray);
13
virtual Vec3f GetNormal(Ray& ray);
14
private:
15
Vec3f m_a, m_b, m_c;
16
Vec3f m_n;
17
};
18
#endif
This page took
0.041249 seconds
and
3
git commands to generate.