| 673 | } |
| 674 | |
| 675 | bool PlaneGeometry::IntersectionPointParam(const Line3D &line, double &t) const |
| 676 | { |
| 677 | Vector3D planeNormal = this->GetNormal(); |
| 678 | |
| 679 | Vector3D lineDirection = line.GetDirection(); |
| 680 | |
| 681 | t = planeNormal * lineDirection; |
| 682 | |
| 683 | if (fabs(t) < eps) |
| 684 | { |
| 685 | return false; |
| 686 | } |
| 687 | |
| 688 | Vector3D diff; |
| 689 | diff = this->GetOrigin() - line.GetPoint(); |
| 690 | t = (planeNormal * diff) / t; |
| 691 | return true; |
| 692 | } |
| 693 | |
| 694 | bool PlaneGeometry::IsParallel(const PlaneGeometry *plane) const |
| 695 | { |
no test coverage detected