summary refs log tree commit diff
path: root/src/Quaternions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Quaternions.cpp')
-rw-r--r--src/Quaternions.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/Quaternions.cpp b/src/Quaternions.cpp
index 0bd0442..6fe85bf 100644
--- a/src/Quaternions.cpp
+++ b/src/Quaternions.cpp
@@ -117,27 +117,6 @@ float LineFacetd(XYZ p1,XYZ p2,XYZ pa,XYZ pb,XYZ pc, XYZ n, XYZ *p)
    return 1;
 }
 
-float LineFacetd(XYZ *p1,XYZ *p2,XYZ *pa,XYZ *pb,XYZ *pc, XYZ *n, XYZ *p)
-{
-
-   //Calculate the parameters for the plane
-   d = - n->x * pa->x - n->y * pa->y - n->z * pa->z;
-
-   //Calculate the position on the line that intersects the plane
-   denom = n->x * (p2->x - p1->x) + n->y * (p2->y - p1->y) + n->z * (p2->z - p1->z);
-   if (abs(denom) < 0.0000001)        // Line and plane don't intersect
-      return 0;
-   mu = - (d + n->x * p1->x + n->y * p1->y + n->z * p1->z) / denom;
-   p->x = p1->x + mu * (p2->x - p1->x);
-   p->y = p1->y + mu * (p2->y - p1->y);
-   p->z = p1->z + mu * (p2->z - p1->z);
-   if (mu < 0 || mu > 1)   // Intersection not along line segment
-      return 0;
-
-   if(!PointInTriangle( p, *n, pa, pb, pc)){return 0;}
-   return 1;
-}
-
 void ReflectVector(XYZ *vel, XYZ *n)
 {
    XYZ vn;