------------------------------------------------------------------------------
| 459 | |
| 460 | //------------------------------------------------------------------------------ |
| 461 | vtkVector2i vtkChartMatrix::GetChartSpan(const vtkVector2i& position) |
| 462 | { |
| 463 | size_t index = position.GetY() * this->Size.GetX() + position.GetX(); |
| 464 | if (position.GetX() < this->Size.GetX() && position.GetY() < this->Size.GetY()) |
| 465 | { |
| 466 | return this->Private->Spans[index]; |
| 467 | } |
| 468 | else |
| 469 | { |
| 470 | return vtkVector2i(0, 0); |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | //------------------------------------------------------------------------------ |
| 475 | vtkVector2i vtkChartMatrix::GetChartIndex(const vtkVector2f& position) |
nothing calls this directly
no test coverage detected