Переход на парадигму 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

Internal server error - Personal Git Server: Beyond coding. We Forge.

500

Internal server error

Forgejo version: 11.0.1+gitea-1.22.0

@ -2,7 +2,7 @@
#define _BGC_AFFINE3_H_INCLUDED_
#include "vector3.h"
#include "matrixes.h"
#include "matrices.h"
#include "matrix3x3.h"
// ==================== Types ==================== //
@ -33,58 +33,58 @@ inline void bgc_fp64_affine3_reset(BGC_FP64_Affine3 * affine)
// ==================== Make ===================== //
inline void bgc_fp32_affine3_make(const BGC_FP32_Matrix3x3 * distortion, const BGC_FP32_Vector3 * shift, BGC_FP32_Affine3 * affine)
inline void bgc_fp32_affine3_make(BGC_FP32_Affine3* affine, const BGC_FP32_Matrix3x3 * distortion, const BGC_FP32_Vector3 * shift)
{
bgc_fp32_matrix3x3_copy(distortion, &affine->distortion);
bgc_fp32_vector3_copy(shift, &affine->shift);
bgc_fp32_matrix3x3_copy(&affine->distortion, distortion);
bgc_fp32_vector3_copy(&affine->shift, shift);
}
inline void bgc_fp64_affine3_make(const BGC_FP64_Matrix3x3 * distortion, const BGC_FP64_Vector3 * shift, BGC_FP64_Affine3 * affine)
inline void bgc_fp64_affine3_make(BGC_FP64_Affine3* affine, const BGC_FP64_Matrix3x3 * distortion, const BGC_FP64_Vector3 * shift)
{
bgc_fp64_matrix3x3_copy(distortion, &affine->distortion);
bgc_fp64_vector3_copy(shift, &affine->shift);
bgc_fp64_matrix3x3_copy(&affine->distortion, distortion);
bgc_fp64_vector3_copy(&affine->shift, shift);
}
// ==================== Copy ===================== //