Удаление функций set_value для структур с открытыми полями (векторы и кватернионы)
This commit is contained in:
parent
e2bf8d28a8
commit
abf99a7126
25 changed files with 597 additions and 707 deletions
|
|
@ -49,6 +49,14 @@
|
||||||
<Unit filename="main.c">
|
<Unit filename="main.c">
|
||||||
<Option compilerVar="CC" />
|
<Option compilerVar="CC" />
|
||||||
</Unit>
|
</Unit>
|
||||||
|
<Unit filename="printing_utils.c">
|
||||||
|
<Option compilerVar="CC" />
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="printing_utils.h" />
|
||||||
|
<Unit filename="vector3_pair_difference.c">
|
||||||
|
<Option compilerVar="CC" />
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="vector3_pair_difference.h" />
|
||||||
<Extensions />
|
<Extensions />
|
||||||
</Project>
|
</Project>
|
||||||
</CodeBlocks_project_file>
|
</CodeBlocks_project_file>
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif // _WINDOWS_
|
#endif // _WINDOWS_
|
||||||
|
|
||||||
|
#include "vector3_pair_difference.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
BGC_FP32_Turn3 versor1, versor2, result;
|
BGC_FP32_Turn3 versor1, versor2, result;
|
||||||
} structure_fp32_t;
|
} structure_fp32_t;
|
||||||
|
|
@ -51,25 +53,6 @@ structure_fp32_t* make_structures(const unsigned int amount)
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_quaternion_fp32(const BGC_FP32_Quaternion* quaternion)
|
|
||||||
{
|
|
||||||
printf("Quaternion FP32(s = %0.12f, x = %0.12f, y = %0.12f, z = %0.12f)\n", quaternion->s, quaternion->x, quaternion->y, quaternion->z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_quaternion_fp64(const BGC_FP64_Quaternion* quaternion)
|
|
||||||
{
|
|
||||||
printf("Quaternion FP64(s = %0.12f, x = %0.12f, y = %0.12f, z = %0.12f)\n", quaternion->s, quaternion->x, quaternion->y, quaternion->z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_vector_fp32(const BGC_FP32_Vector3* vector)
|
|
||||||
{
|
|
||||||
printf("(%f, %f, %f) / %f\n", vector->x, vector->y, vector->z, bgc_fp32_vector3_get_length(vector));
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_vector_fp64(const BGC_FP64_Vector3* vector)
|
|
||||||
{
|
|
||||||
printf("(%lf, %lf, %lf) / %lf\n", vector->x, vector->y, vector->z, bgc_fp64_vector3_get_length(vector));
|
|
||||||
}
|
|
||||||
|
|
||||||
void list_work(const uint_fast32_t amount, structure_fp32_t* list)
|
void list_work(const uint_fast32_t amount, structure_fp32_t* list)
|
||||||
{
|
{
|
||||||
|
|
@ -113,9 +96,9 @@ int main()
|
||||||