c11fb8acceb5ac845f1be08178f49b09d22df080
1 #include "InfinitePlane.hxx"
3 InfinitePlane::InfinitePlane(const Vec3f
& a
, const Vec3f
& n
, Shader
* shader
)
11 InfinitePlane::~InfinitePlane()
16 InfinitePlane::Intersect(Ray
& ray
)
18 Vec3f diff
= m_a
- ray
.origin();
19 float t
= diff
.dot(m_n
) / ray
.direction().dot(m_n
);
20 if (t
< Epsilon
|| t
> ray
.t())
30 InfinitePlane::GetNormal(Ray
& ray
)
36 InfinitePlane::CalcBounds()
42 InfinitePlane::InVoxel(const Box
& box
)
This page took 0.042855 seconds and 3 git commands to generate.