Beispiel #1
0
        public VectorLF3 GetIntersection(Line3D line)
        {
            double rhs = VectorLF3.Dot(__normal, __ponit) - VectorLF3.Dot(__normal, line.src);
            double lhs = rhs / VectorLF3.Dot(__normal, line.dir);

            return(line.src + (line.dir * lhs));
        }
Beispiel #2
0
        public VectorLF3 GetIntersection(Line3D line)
        {
#if LEGACY
            double rhs = VectorLF3.Dot(__normal, __ponit) - VectorLF3.Dot(__normal, line.src);
#else
            double rhs = VectorLF3.Dot(normal, (ponit - line.src));
#endif
            double lhs = rhs / VectorLF3.Dot(normal, line.dir);

            return(line.src + (line.dir * lhs));
        }
Beispiel #3
0
 public bool IsParallel(Line3D line)
 {
     return(VectorLF3.Dot(line.dir, __normal) == 0);
 }