---------------------------------------------------------------------------
| 721 | |
| 722 | // --------------------------------------------------------------------------- |
| 723 | void vtkBoundingBox::GetDistance(double point[3], double distance[3]) |
| 724 | { |
| 725 | for (int i = 0; i < 3; i++) |
| 726 | { |
| 727 | if (point[i] < this->MinPnt[i]) |
| 728 | { |
| 729 | distance[i] = point[i] - this->MinPnt[i]; |
| 730 | } |
| 731 | else if (point[i] > this->MaxPnt[i]) |
| 732 | { |
| 733 | distance[i] = point[i] - this->MaxPnt[i]; |
| 734 | } |
| 735 | else |
| 736 | { |
| 737 | distance[i] = 0; |
| 738 | } |
| 739 | } |
| 740 | } |
| 741 | |
| 742 | // --------------------------------------------------------------------------- |
| 743 | void vtkBoundingBox::Translate(double motion[3]) |
no outgoing calls