* Returns the center of the rect as a vtkVector2d. */
| 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 | |
| 310 | class vtkRecti : public vtkRect<int> |
nothing calls this directly
no test coverage detected