Добавление restricted функций, нормализация дуальных кватернионов и позиции твёрдого тела (rigid pose3)
This commit is contained in:
parent
7591b20f41
commit
24d37be75d
7 changed files with 130 additions and 82 deletions
|
|
@ -222,7 +222,7 @@ int bgc_fp32_turn3_find_direction_difference(BGC_FP32_Turn3* turn, const BGC_FP3
|
|||
|
||||
BGC_FP32_Vector3 axis;
|
||||
|
||||
bgc_fp32_vector3_get_cross_product(&axis, first, second);
|
||||
_bgc_fp32_restrict_vector3_get_cross_product(&axis, first, second);
|
||||
|
||||
const float square_product = first_square_modulus * second_square_modulus;
|
||||
const float dot_product = bgc_fp32_vector3_get_dot_product(first, second);
|
||||
|
|
@ -266,7 +266,7 @@ int bgc_fp64_turn3_find_direction_difference(BGC_FP64_Turn3* turn, const BGC_FP6
|
|||
|
||||
BGC_FP64_Vector3 axis;
|
||||
|
||||
bgc_fp64_vector3_get_cross_product(&axis, first, second);
|
||||
_bgc_fp64_restrict_vector3_get_cross_product(&axis, first, second);
|
||||
|
||||
const double square_product = first_square_modulus * second_square_modulus;
|
||||
const double dot_product = bgc_fp64_vector3_get_dot_product(first, second);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue