modified lib GPC for header only
worked on 3d traytracing
This commit is contained in:
@@ -41,7 +41,7 @@ public:
|
||||
|
||||
|
||||
// http://www.lighthouse3d.com/tutorials/maths/ray-triangle-intersection/
|
||||
bool intersects(Ray3 ray, Point3& pos) const {
|
||||
bool intersects(const Ray3& ray, Point3& pos) const {
|
||||
|
||||
const Point3 e1 = p2-p1;
|
||||
const Point3 e2 = p3-p1;
|
||||
|
||||
Reference in New Issue
Block a user