Переделка методов turn3_find_direction_difference, возврат функций матриц поворота для turn3
This commit is contained in:
parent
2ce4b64ca3
commit
78d1661c5d
2 changed files with 198 additions and 106 deletions
|
|
@ -201,92 +201,95 @@ void bgc_fp64_turn3_set_rotation(BGC_FP64_Turn3* turn, const double x1, const do
|
|||
}
|
||||
}
|
||||
|
||||
// ========= Make Direction Difference ========== //
|
||||
// ========= Find Direction Difference ========== //
|
||||
|
||||
static int _bgc_fp32_turn3_make_direction_turn(BGC_FP32_Turn3* turn, const BGC_FP32_Vector3* start, const BGC_FP32_Vector3* end, const float square_modulus_product)
|
||||
int bgc_fp32_turn3_find_direction_difference(BGC_FP32_Turn3* turn, const BGC_FP32_Vector3* first, const BGC_FP32_Vector3* second)
|
||||
{
|
||||
BGC_FP32_Vector3 orthogonal_axis;
|
||||
|
||||
bgc_fp32_vector3_get_cross_product(&orthogonal_axis, start, end);
|
||||
|
||||
const float scalar_product = bgc_fp32_vector3_get_dot_product(start, end);
|
||||