Переделка методов turn3_find_direction_difference, возврат функций матриц поворота для turn3

This commit is contained in:
Andrey Pokidov 2026-02-07 02:53:21 +07:00
parent 2ce4b64ca3
commit 78d1661c5d
2 changed files with 198 additions and 106 deletions

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

@ -201,92 +201,95 @@ void bgc_fp64_turn3_set_rotation(BGC_FP64_Turn3* turn, const double x1, const do
}
}
// ========= Make 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)
{
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);