Files
pip/plans/pivector2d.md
2026-02-27 00:18:40 +03:00

29 lines
879 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# План рефакторинга PIVector2D
## Этап 1: Сборка
### 1.1 Собрать проект
- [x] собери проект, при необходимости поправь ошибки
## Этап 2: Проверить и поправить тесты
### 2.1 Запустить тесты
- [x] Запустить: `./build/tests/pip_math_test --gtest_filter="*Vector2D*"`
- [x] В случае ошибок внести правки в pivector2d.h
---
## Этап 3: Заменить PIPair<ssize_t, ssize_t> на PIVector2DIndex
### 3.1 Создать структуру PIVector2DIndex
- [x] Создано: `struct Index { ssize_t row; ssize_t col; };`
### 3.2 Обновить return types
- [x] indexOf() -> возвращает Index вместо PIPair<ssize_t, ssize_t>
- [x] lastIndexOf()
- [x] indexWhere()
- [x] lastIndexWhere()
---