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)); }
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)); }
public bool IsParallel(Line3D line) { return(VectorLF3.Dot(line.dir, __normal) == 0); }