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

Method IntersectsSphere

Common/DataModel/vtkBoundingBox.cxx:664–669  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

662
663//------------------------------------------------------------------------------
664bool vtkBoundingBox::IntersectsSphere(double center[3], double radius) const
665{
666 return center[0] >= this->MinPnt[0] - radius && center[0] <= this->MaxPnt[0] + radius &&
667 center[1] >= this->MinPnt[1] - radius && center[1] <= this->MaxPnt[1] + radius &&
668 center[2] >= this->MinPnt[2] - radius && center[2] <= this->MaxPnt[2] + radius;
669}
670
671// ---------------------------------------------------------------------------
672bool vtkBoundingBox::IntersectsLine(const double p1[3], const double p2[3]) const

Calls

no outgoing calls

Tested by

no test coverage detected