Большое переименование

This commit is contained in:
Andrey Pokidov 2024-11-20 16:53:12 +07:00
parent e354b2425c
commit e7616ae80c
30 changed files with 1356 additions and 1348 deletions

View file

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

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

@ -9,36 +9,36 @@
#include <time.h> #include <time.h>
#endif // _WINDOWS_ #endif // _WINDOWS_
SPVersor * allocate_versors(const unsigned int amount) BgFP32Versor * allocate_versors(const unsigned int amount)
{ {
return calloc(amount, sizeof(SPVersor)); return calloc(amount, sizeof(BgFP32Versor));
} }
SPVersor * make_zero_versors(const unsigned int amount) BgFP32Versor * make_zero_versors(const unsigned int amount)
{ {
SPVersor * list = allocate_versors(amount); BgFP32Versor * list = allocate_versors(amount);
if (list == 0) { if (list == 0) {
return 0; return 0;
} }
for (unsigned int i = 0; i < amount; i++) { for (unsigned int i = 0; i < amount; i++) {
sp_versor_reset(&list[i]); bg_fp32_versor_reset(&list[i]);
} }
return list; return list;
} }
SPVersor * make_random_versors(const unsigned int amount) BgFP32Versor * make_random_versors(const unsigned int amount)
{ {
SPVersor * list = allocate_versors(amount); BgFP32Versor * list = allocate_versors(amount);
if (list == 0) { if (list == 0) {
return 0; return 0;
} }
for (unsigned int i = 0; i < amount; i++) { for (unsigned int i = 0; i < amount; i++) {
sp_versor_set( bg_fp32_versor_set_values(
(2.0f * rand()) / RAND_MAX - 1.0f, (2.0f * rand()) / RAND_MAX - 1.0f,
(2.0f * rand()) / RAND_MAX - 1.0f, (2.0f * rand()) / RAND_MAX - 1.0f,
(2.0f * rand()) / RAND_MAX - 1.0f, (2.0f * rand()) / RAND_MAX - 1.0f,
@ -50,14 +50,14 @@ SPVersor * make_random_versors(const unsigned int amount)
return list; return list;
} }
void print_versor(const SPVersor* versor) void print_versor(const BgFP32Versor* versor)
{ {
printf("(%f, %f, %f, %f)\n", versor->_s0, versor->_x1, versor->_x2, versor->_x3); printf("(%f, %f, %f, %f)\n", versor->_s0, versor->_x1, versor->_x2, versor->_x3);
} }
void print_vector(const SPVector3* vector) void print_vector(const BgFP32Vector3* vector)
{ {