Развитие структуры Posture3 для хранения пложения тела в виде нормализованного дуального кватерниона
This commit is contained in:
parent
0c27a6e59b
commit
add4d89c80
3 changed files with 109 additions and 24 deletions
|
|
@ -3,10 +3,18 @@
|
|||
extern inline void bgc_fp32_posture3_reset(BGC_FP32_Posture3* posture);
|
||||
extern inline void bgc_fp64_posture3_reset(BGC_FP64_Posture3* posture);
|
||||
|
||||
void _bgc_fp32_posture3_normalize(BGC_FP32_Posture3* posture)
|
||||
{
|
||||
const float square_magnitude = bgc_fp32_quaternion_get_square_magnitude(&posture->_dual_versor.real_part);
|
||||
extern inline void bgc_fp32_posture3_copy(BGC_FP32_Posture3* destination, const BGC_FP32_Posture3* source);
|
||||
extern inline void bgc_fp64_posture3_copy(BGC_FP64_Posture3* destination, const BGC_FP64_Posture3* source);
|
||||
|
||||
extern inline void bgc_fp32_posture3_swap(BGC_FP32_Posture3* posture1, BGC_FP32_Posture3* posture2);
|
||||
extern inline void bgc_fp64_posture3_swap(BGC_FP64_Posture3* posture1, BGC_FP64_Posture3* posture2);
|
||||
|
||||
extern inline void bgc_fp32_posture3_convert_to_fp64(BGC_FP64_Posture3* destination, const BGC_FP32_Posture3* source);
|
||||