Переход на парадигму Destination first в порядке параметров функий

This commit is contained in:
Andrey Pokidov 2026-02-01 23:42:51 +07:00
parent f7e41645fe
commit 03627f4401
41 changed files with 1570 additions and 1978 deletions

View file

@ -72,7 +72,7 @@ inline void bgc_fp64_rotation3_make(const double x1, const double x2, const doub
inline void bgc_fp32_rotation3_make_for_axis(const BGC_FP32_Vector3* axis, const float angle, const int unit, BGC_FP32_Rotation3* rotation)
{
if (bgc_fp32_vector3_get_normalized(axis, &rotation->axis)) {
if (bgc_fp32_vector3_get_normalized(&rotation->axis, axis)) {
rotation->radians = bgc_fp32_angle_to_radians(angle, unit);
}
else {
@ -82,7 +82,7 @@ inline void bgc_fp32_rotation3_make_for_axis(const BGC_FP32_Vector3* axis, const
inline void bgc_fp64_rotation3_make_for_axis(const BGC_FP64_Vector3* axis, const double angle, const int unit, BGC_FP64_Rotation3* rotation)
{
if (bgc_fp64_vector3_get_normalized(axis, &rotation->axis)) {
if (bgc_fp64_vector3_get_normalized(&rotation->axis, axis)) {
rotation->radians = bgc_fp64_angle_to_radians(angle, unit);
}
else {