Добавление функции получения поворота (turn3) на основе матрицы поворота (matrix3x3)
This commit is contained in:
parent
5425206401
commit
39352af3f9
2 changed files with 15 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
return bgc_fp32_quaternion_set_rotation_matrix(&turn->_versor, matrix);
|
||||
}
|
||||
|
||||
inline int bgc_fp64_turn3_set_rotation_matrix(BGC_FP64_Turn3* const turn, const BGC_FP64_Matrix3x3* const matrix)
|
||||
{
|
||||
return bgc_fp64_quaternion_set_rotation_matrix(&turn->_versor, matrix);
|
||||
}
|
||||
|
||||
// ============= Get Reverse Matrix ============= //
|
||||
|
||||
inline void bgc_fp32_turn3_get_reverse_matrix(BGC_FP32_Matrix3x3* const matrix, const BGC_FP32_Turn3* const turn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue