Добавлены матрицы 2x3 и 3x2, добавлены произведения матриц. Изменения в названиях функций

This commit is contained in:
Andrey Pokidov 2024-11-13 12:41:05 +07:00
parent 86486ac9cf
commit 049f09f3d4
31 changed files with 1831 additions and 1314 deletions

View file

@ -135,7 +135,7 @@ void print_matrix(const DPMatrix3x3* matrix)
printf("(%lf, %lf, %lf)\n", matrix->r2c1, matrix->r2c2, matrix->r2c3);
printf("(%lf, %lf, %lf)\n\n", matrix->r3c1, matrix->r3c2, matrix->r3c3);
}
/*
int main()
{
DPMatrix3x3 m1, m2, check;
@ -170,3 +170,18 @@ int main()
return 0;
}
*/
int main()
{
SPVector2 vector;
sp_vector2_set(0, 0, &vector);
printf("SPVector2(%f, %f), module = %d\n",
vector.x1,
vector.x2,
sp_vector2_is_zero(&vector)
);
return 0;
}