MCPcopy Create free account
hub / github.com/Kitware/VTK / GetDistance

Method GetDistance

Common/DataModel/vtkBoundingBox.cxx:723–740  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

721
722// ---------------------------------------------------------------------------
723void 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// ---------------------------------------------------------------------------
743void vtkBoundingBox::Translate(double motion[3])

Callers 12

RenderMethod · 0.45
TestDepthOfFieldPassFunction · 0.45
TestPointFillPassFunction · 0.45
PickPropMethod · 0.45
UpdateResamplerMethod · 0.45
RenderMethod · 0.45
TestOSPRayDepthOfFieldFunction · 0.45
PickPropMethod · 0.45

Calls

no outgoing calls

Tested by 4

TestDepthOfFieldPassFunction · 0.36
TestPointFillPassFunction · 0.36
TestOSPRayDepthOfFieldFunction · 0.36