Добавлены матрицы 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

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_workspace_layout_file>
<FileVersion major="1" minor="0" />
<ActiveProject path="dev/geometry-dev.cbp" />
<ActiveProject path="src/geometry.cbp" />
<PreferredTarget name="Debug" />
</CodeBlocks_workspace_layout_file>

View file

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<FileVersion major="1" minor="0" />
<ActiveTarget name="Release" />
<ActiveTarget name="Debug" />
<File name="main.c" open="0" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="3262" topLine="102" />
<Cursor1 position="3793" topLine="116" />
</Cursor>
</File>
</CodeBlocks_layout_file>

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;
}

BIN
docs/documentation.odt Normal file

Binary file not shown.

View file

@ -58,10 +58,16 @@
<Option compilerVar="CC" />
</Unit>
<Unit filename="matrix2x2.h" />
<Unit filename="matrix2x3.h" />
<Unit filename="matrix3x2.h" />
<Unit filename="matrix3x3.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="matrix3x3.h" />
<Unit filename="matrixes.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="matrixes.h" />
<Unit filename="quaternion.c">
<Option compilerVar="CC" />
</Unit>

View file

Internal server error - Personal Git Server: Beyond coding. We Forge.

500

Internal server error

Forgejo version: 11.0.1+gitea-1.22.0

@ -8,7 +8,9 @@
#include "vector2.h"
#include "vector3.h"
#include "matrixes.h"
#include "matrix2x2.h"