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

Function GetCenter

Common/DataModel/vtkRect.h:303–307  ·  view source on GitHub ↗

* Returns the center of the rect as a vtkVector2d. */

Source from the content-addressed store, hash-verified

301 * Returns the center of the rect as a vtkVector2d.
302 */
303 vtkVector2d GetCenter() const
304 {
305 return vtkVector2d(
306 this->GetX() + 0.5 * this->GetWidth(), this->GetY() + 0.5 * this->GetHeight());
307 }
308};
309
310class vtkRecti : public vtkRect<int>

Callers

nothing calls this directly

Calls 4

vtkVector2dClass · 0.85
GetXMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected