Добавление проверки, является ли матрица 2x2 или 3x3 матрицей поворота

This commit is contained in:
Andrey Pokidov 2025-06-05 00:04:27 +07:00
parent 2a4d5522d3
commit b777560d93
6 changed files with 76 additions and 4 deletions

View file

@ -61,7 +61,7 @@ void bgc_slerp_make_shortened_fp32(const BgcVersorFP32* start, const BgcVersorFP
void bgc_slerp_make_shortened_fp64(const BgcVersorFP64* start, const BgcVersorFP64* end, BgcSlerpFP64* slerp);
inline bgc_slerp_get_turn_for_phase_fp32(const BgcSlerpFP32* slerp, const float phase, BgcVersorFP32* result)
inline void bgc_slerp_get_turn_for_phase_fp32(const BgcSlerpFP32* slerp, const float phase, BgcVersorFP32* result)
{
const float angle = slerp->radians * phase;
const float cosine = cosf(angle);
@ -76,7 +76,7 @@ inline bgc_slerp_get_turn_for_phase_fp32(const BgcSlerpFP32* slerp, const float
);
}
inline bgc_slerp_get_turn_for_phase_fp64(const BgcSlerpFP64* slerp, const double phase, BgcVersorFP64* result)
inline void bgc_slerp_get_turn_for_phase_fp64(const BgcSlerpFP64* slerp, const double phase, BgcVersorFP64* result)
{
const double angle = slerp->radians * phase;
const double cosine = cos(angle);