Исправление функций комбинации, добавление функций исключения одной позиции из другой

This commit is contained in:
Andrey Pokidov 2026-01-27 19:34:57 +07:00
parent 101df9f089
commit e1dce83d63
7 changed files with 82 additions and 40 deletions

View file

@ -46,11 +46,11 @@ extern inline void bgc_versor_invert_fp64(BgcVersorFP64* versor);
extern inline void bgc_versor_get_inverse_fp32(const BgcVersorFP32* versor, BgcVersorFP32* inverse);
extern inline void bgc_versor_get_inverse_fp64(const BgcVersorFP64* versor, BgcVersorFP64* inverse);
extern inline void bgc_versor_combine_fp32(const BgcVersorFP32* second, const BgcVersorFP32* first, BgcVersorFP32* result);
extern inline void bgc_versor_combine_fp64(const BgcVersorFP64* second, const BgcVersorFP64* first, BgcVersorFP64* result);
extern inline void bgc_versor_combine_fp32(const BgcVersorFP32* first, const BgcVersorFP32* second, BgcVersorFP32* result);
extern inline void bgc_versor_combine_fp64(const BgcVersorFP64* first, const BgcVersorFP64* second, BgcVersorFP64* result);
extern inline void bgc_versor_combine3_fp32(const BgcVersorFP32* third, const BgcVersorFP32* second, const BgcVersorFP32* first, BgcVersorFP32* result);
extern inline void bgc_versor_combine3_fp64(const BgcVersorFP64* third, const BgcVersorFP64* second, const BgcVersorFP64* first, BgcVersorFP64* result);
extern inline void bgc_versor_combine3_fp32(const BgcVersorFP32* first, const BgcVersorFP32* second, const BgcVersorFP32* third, BgcVersorFP32* result);
extern inline void bgc_versor_combine3_fp64(const BgcVersorFP64* first, const BgcVersorFP64* second, const BgcVersorFP64* third, BgcVersorFP64* result);
extern inline void bgc_versor_exclude_fp32(const BgcVersorFP32* base, const BgcVersorFP32* excludant, BgcVersorFP32* difference);
extern inline void bgc_versor_exclude_fp64(const BgcVersorFP64* base, const BgcVersorFP64* excludant, BgcVersorFP64* difference);
@ -355,7 +355,7 @@ int bgc_versor_make_basis_difference_fp32(
}
// Step 6: Combine turn1 and turn2:
bgc_versor_combine_fp32(&turn2, &turn1, result);
bgc_versor_combine_fp32(&turn1, &turn2, result);
return BGC_SUCCESS;
}
@ -426,7 +426,7 @@ int bgc_versor_make_basis_difference_fp64(
}
// Step 6: Combine turn1 and turn2:
bgc_versor_combine_fp64(&turn2, &turn1, result);
bgc_versor_combine_fp64(&turn1, &turn2, result);
return BGC_SUCCESS;
}