Добавление функции получения поворота (turn3) на основе матрицы поворота (matrix3x3)

This commit is contained in:
Andrey Pokidov 2026-04-03 21:25:22 +07:00
parent 5425206401
commit 39352af3f9
2 changed files with 15 additions and 0 deletions

View file

@ -62,6 +62,9 @@ extern inline void bgc_fp64_turn3_exclude(BGC_FP64_Turn3* const difference, cons
extern inline void bgc_fp32_turn3_get_rotation_matrix(BGC_FP32_Matrix3x3* const matrix, const BGC_FP32_Turn3* const turn);
extern inline void bgc_fp64_turn3_get_rotation_matrix(BGC_FP64_Matrix3x3* const matrix, const BGC_FP64_Turn3* const turn);
extern inline int bgc_fp32_turn3_set_rotation_matrix(BGC_FP32_Turn3* const turn, const BGC_FP32_Matrix3x3* const matrix);
extern inline int bgc_fp64_turn3_set_rotation_matrix(BGC_FP64_Turn3* const turn, const BGC_FP64_Matrix3x3* const matrix);
extern inline void bgc_fp32_turn3_get_reverse_matrix(BGC_FP32_Matrix3x3* const matrix, const BGC_FP32_Turn3* const turn);
extern inline void bgc_fp64_turn3_get_reverse_matrix(BGC_FP64_Matrix3x3* const matrix, const BGC_FP64_Turn3* const turn);

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

@ -371,6 +371,18 @@ inline void bgc_fp64_turn3_get_rotation_matrix(BGC_FP64_Matrix3x3* const matrix,
bgc_fp64_quaternion_get_rotation_matrix(matrix, &turn->_versor);
}
// ============ Set Rotation Matrix ============= //
inline int bgc_fp32_turn3_set_rotation_matrix(BGC_FP32_Turn3* const turn, const BGC_FP32_Matrix3x3* const matrix)
{