/*********************************************************************

Name:		Raytracer
Author:		Kamil Szatkowski "Netrix" (C)
Website:	http://www.netrix.org.pl/

Implementation based on source code from: http://www.devmaster.net/articles/raytracing_series/part1.php

*********************************************************************/
#pragma once
#include "NLib/nMath.hpp"

bool PlaneBoxOverlap(const NIne::NMVector3f& vNormal, const NIne::NMVector3f& vVert, const NIne::NMVector3f& vMaxBox);

bool TriBoxIntersection(const NIne::NMVector3f& vBoxCentre, 
						const NIne::NMVector3f& vBoxHalfSize,
						const NIne::NMVector3f& vp0, 
						const NIne::NMVector3f& vp1, 
						const NIne::NMVector3f& vp2);