Реорганизация методов для версоров и тангентов

This commit is contained in:
Andrey Pokidov 2025-01-30 01:10:41 +07:00
parent 0027924f86
commit e39765b733
5 changed files with 147 additions and 247 deletions

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

@ -12,7 +12,7 @@
typedef struct {
BgcVersorFP32 versor1, versor2, result;
//BgcMatrix3x3FP32 matrix;
BgcVector3FP32 vector1, vector2;
//BgcVector3FP32 vector1, vector2;
} structure_fp32_t;
structure_fp32_t* allocate_structures(const unsigned int amount)
@ -50,7 +50,7 @@ structure_fp32_t* make_structures(const unsigned int amount)
bgc_versor_reset_fp32(&list[i].result);
//bgc_matrix3x3_set_to_identity_fp32(&list[i].matrix);
/*
bgc_vector3_set_values_fp32(
rand() * multiplier - 1.0f,
rand() * multiplier - 1.0f,
@ -59,6 +59,7 @@ structure_fp32_t* make_structures(const unsigned int amount)
);
bgc_vector3_reset_fp32(&list[i].vector2);
*/
}
return list;
@ -84,51 +85,37 @@ void print_vector_fp64(const BgcVector3FP64* vector)
printf("(%lf, %lf, %lf) / %lf\n", vector->x1, vector->x2, vector->x3, bgc_vector3_get_modulus_fp64(vector));
}
void item_work(structure_fp32_t* item)