get rid of piForeach

apply some code analyzer recommendations
ICU flag now check if libicu exists
prepare for more accurate growth of containers (limited PoT, then constantly increase size)
This commit is contained in:
2024-11-20 20:01:47 +03:00
parent 24112498ce
commit caa7880cc4
40 changed files with 415 additions and 320 deletions

View File

@@ -633,7 +633,7 @@ public:
//! \~russian
//! \brief Транспонирование матрицы.
//! \details Работает только с квадратными матрицами.
//! \return копия транспонированной матрицы.
//! \return Копия транспонированной матрицы.
PIMathMatrixT<Cols, Rows, Type> transposed() const {
PIMathMatrixT<Cols, Rows, Type> tm;
PIMM_FOR tm[c][r] = m[r][c];
@@ -647,8 +647,8 @@ public:
//! \~russian
//! \brief Операция поворота матрицы.
//! \details Работает только с матрицами 2x2.
//! \return повернутая матрица.
PIMathMatrixT<Rows, Cols, Type> rotate(Type angle) {
//! \return Эта повернутая матрица.
PIMathMatrixT<Rows, Cols, Type> & rotate(Type angle) {
static_assert(Rows == 2 && Cols == 2, "Works only with 2x2 matrix");
Type c = std::cos(angle);
Type s = std::sin(angle);
@@ -667,8 +667,8 @@ public:
//! \~russian
//! \brief Операция поворота матрицы.
//! \details Работает только с матрицами 2x2.
//! \return копия повернутой матрицы.
PIMathMatrixT<Rows, Cols, Type> & rotated(Type angle) {
//! \return Копия повернутой матрицы.
PIMathMatrixT<Rows, Cols, Type> rotated(Type angle) {
static_assert(Rows == 2 && Cols == 2, "Works only with 2x2 matrix");
PIMathMatrixT<Cols, Rows, Type> outm;
Type c = std::cos(angle);