-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// This code is in the public domain -- Ignacio Castaño <[email protected]> | ||
// This code is in the public domain -- Ignacio Castaño <[email protected]> | ||
|
||
#include <nvmath/Triangle.h> | ||
|
||
using namespace nv; | ||
|
||
|
||
/// Tomas Möller, barycentric ray-triangle test. | ||
/// Tomas Möller, barycentric ray-triangle test. | ||
bool rayTest_Moller(const Triangle & t, Vector3::Arg orig, Vector3::Arg dir, float * out_t, float * out_u, float * out_v) | ||
{ | ||
// find vectors for two edges sharing vert0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// This code is in the public domain -- Ignacio Castaño <[email protected]> | ||
// This code is in the public domain -- Ignacio Castaño <[email protected]> | ||
|
||
#ifndef NV_MATH_TRIANGLE_H | ||
#define NV_MATH_TRIANGLE_H | ||
|
@@ -44,7 +44,7 @@ namespace nv | |
}; | ||
|
||
|
||
// Tomas Akenine-Möller box-triangle test. | ||
// Tomas Akenine-Möller box-triangle test. | ||
NVMATH_API bool triBoxOverlap(Vector3::Arg boxcenter, Vector3::Arg boxhalfsize, const Triangle & triangle); | ||
NVMATH_API bool triBoxOverlapNoBounds(Vector3::Arg boxcenter, Vector3::Arg boxhalfsize, const Triangle & triangle); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters