Merge private branch.

This commit is contained in:
castano
2008-04-17 06:58:43 +00:00
parent cb91740591
commit 17a4f765fb
20 changed files with 2440 additions and 43 deletions

17
src/nvmath/Plane.cpp Normal file
View File

@ -0,0 +1,17 @@
// This code is in the public domain -- castanyo@yahoo.es
#include "Plane.h"
#include "Matrix.h"
namespace nv
{
Plane transformPlane(const Matrix& m, Plane::Arg p)
{
Vector3 newVec = transformVector(m, p.vector());
Vector3 ptInPlane = p.offset() * p.vector();
ptInPlane = transformPoint(m, ptInPlane);
return Plane(newVec, ptInPlane);
}
}