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

Method GetDiagonalLength2

Common/DataModel/vtkBoundingBox.cxx:366–374  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

364
365//------------------------------------------------------------------------------
366double vtkBoundingBox::GetDiagonalLength2() const
367{
368 assert("pre: not_empty" && this->IsValid());
369
370 double l[3];
371 this->GetLengths(l);
372
373 return l[0] * l[0] + l[1] * l[1] + l[2] * l[2];
374}
375
376//------------------------------------------------------------------------------
377double vtkBoundingBox::GetDiagonalLength() const

Callers 3

GetDiagonalLengthMethod · 0.95
operator()Method · 0.80

Calls 3

IsValidMethod · 0.95
GetLengthsMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected