Obb intersect ray

New method


Former-commit-id: 282a82d773f61fcec8026eb4ccb74e8b2de9784f
This commit is contained in:
Gawaboumga
2014-07-04 11:22:47 +02:00
parent 31d54d4706
commit ba7f3606a0
2 changed files with 24 additions and 100 deletions

View File

@@ -34,7 +34,7 @@ template<typename T> class NzRay
NzVector3<T> GetPoint(T lambda) const;
bool Intersect(const NzBox<T>& box, NzVector3<T> * hitPoint = nullptr, NzVector3<T> * hitSecondPoint = nullptr) const;
bool Intersect(const NzOrientedBox<T>& orientedBox, const NzMatrix4<T>& matrix, NzVector3<T> * hitPoint = nullptr, NzVector3<T> * hitSecondPoint = nullptr) const;
bool Intersect(const NzOrientedBox<T>& orientedBox, NzVector3<T> * hitPoint = nullptr, NzVector3<T> * hitSecondPoint = nullptr) const;
bool Intersect(const NzPlane<T>& plane, NzVector3<T> * hitPoint = nullptr) const;
bool Intersect(const NzSphere<T>& sphere, NzVector3<T> * hitPoint = nullptr, NzVector3<T> * hitSecondPoint = nullptr) const;