Завершение большого переименования

This commit is contained in:
Andrey Pokidov 2025-01-15 15:08:12 +07:00
parent 120e651517
commit 3805354611
31 changed files with 1213 additions and 1255 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

@ -1,12 +1,12 @@
#ifndef _BASIC_GEOMETRY_MATRIX3X3_H_
#define _BASIC_GEOMETRY_MATRIX3X3_H_
#ifndef _BGC_MATRIX3X3_H_
#define _BGC_MATRIX3X3_H_
#include "vector3.h"
#include "matrixes.h"
// =================== Reset ==================== //
inline void matrix3x3_reset_fp32(matrix3x3_fp32_t* matrix)
inline void bgc_matrix3x3_reset_fp32(bgc_matrix3x3_fp32_t* matrix)
{
matrix->r1c1 = 0.0f;
matrix->r1c2 = 0.0f;
@ -21,7 +21,7 @@ inline void matrix3x3_reset_fp32(matrix3x3_fp32_t* matrix)
matrix->r3c3 = 0.0f;
}
inline void matrix3x3_reset_fp64(matrix3x3_fp64_t* matrix)
inline void bgc_matrix3x3_reset_fp64(bgc_matrix3x3_fp64_t* matrix)
{
matrix->r1c1 = 0.0;
matrix->r1c2 = 0.0;
@ -38,7 +38,7 @@ inline void matrix3x3_reset_fp64(matrix3x3_fp64_t* matrix)
// ================== Identity ================== //
inline void matrix3x3_set_to_identity_fp32(matrix3x3_fp32_t* matrix)
inline void bgc_matrix3x3_set_to_identity_fp32(bgc_matrix3x3_fp32_t* matrix)
{
matrix->r1c1 = 1.0f;
matrix->r1c2 = 0.0f;
@ -53,7 +53,7 @@ inline void matrix3x3_set_to_identity_fp32(matrix3x3_fp32_t* matrix)
matrix->r3c3 = 1.0f;
}
inline void matrix3x3_set_to_identity_fp64(matrix3x3_fp64_t* matrix)
inline void bgc_matrix3x3_set_to_identity_fp64(bgc_matrix3x3_fp64_t* matrix)
{
matrix->r1c1 = 1.0;
matrix->r1c2 = 0.0;
@ -70,7 +70,7 @@ inline void matrix3x3_set_to_identity_fp64(matrix3x3_fp64_t* matrix)
// ================ Make Diagonal =============== //
inline void matrix3x3_set_to_diagonal_fp32(const float d1, const float d2, const float d3, matrix3x3_fp32_t* matrix)
inline void bgc_matrix3x3_set_to_diagonal_fp32(const float d1, const float d2, const float d3, bgc_matrix3x3_fp32_t* matrix)
{
matrix->r1c1 = d1;
matrix->r1c2 = 0.0f;
@ -85,7 +85,7 @@ inline void matrix3x3_set_to_diagonal_fp32(const float d1, const float d2, const
matrix->r3c3 = d2;
}
inline void matrix3x3_set_to_diagonal_fp64(const double d1, const double d2, const double d3, matrix3x3_fp64_t* matrix)
inline void bgc_matrix3x3_set_to_diagonal_fp64(const double d1, const double d2, const double d3, bgc_matrix3x3_fp64_t* matrix)
{
matrix->r1c1 = d1;
matrix->r1c2 = 0.0;
@ -102,7 +102,7 @@ inline void matrix3x3_set_to_diagonal_fp64(const double d1, const double d2, con
// ==================== Copy ==================== //
inline void matrix3x3_copy_fp32(const matrix3x3_fp32_t* from, matrix3x3_fp32_t* to)
inline void bgc_matrix3x3_copy_fp32(const bgc_matrix3x3_fp32_t* from, bgc_matrix3x3_fp32_t* to)
{
to->r1c1 = from->r1c1;
to->r1c2 = from->r1c2;
@ -117,7 +117,7 @@ inline void matrix3x3_copy_fp32(const matrix3x3_fp32_t* from, matrix3x3_fp32_t*
to->r3c3 = from->r3c3;
}
inline void matrix3x3_copy_fp64(const matrix3x3_fp64_t* from, matrix3x3_fp64_t* to)
inline void bgc_matrix3x3_copy_fp64(const bgc_matrix3x3_fp64_t* from, bgc_matrix3x3_fp64_t* to)
{
to->r1c1 = from->r1c1;
to->r1c2 = from->r1c2;
@ -134,7 +134,7 @@ inline void matrix3x3_copy_fp64(const matrix3x3_fp64_t* from, matrix3x3_fp64_t*
// ==================== Swap ==================== //
inline void matrix3x3_swap_fp32(matrix3x3_fp32_t* matrix1, matrix3x3_fp32_t* matrix2)
inline void bgc_matrix3x3_swap_fp32(bgc_matrix3x3_fp32_t* matrix1, bgc_matrix3x3_fp32_t* matrix2)
{
const float r1c1 = matrix2->r1c1;
const float r1c2 = matrix2->r1c2;
@ -173,7 +173,7 @@ inline void matrix3x3_swap_fp32(matrix3x3_fp32_t* matrix1, matrix3x3_fp32_t* mat
matrix1->r3c3 = r3c3;
}
inline void matrix3x3_swap_fp64(matrix3x3_fp64_t* matrix1, matrix3x3_fp64_t* matrix2)
inline void bgc_matrix3x3_swap_fp64(bgc_matrix3x3_fp64_t* matrix1, bgc_matrix3x3_fp64_t* matrix2)
{
const double r1c1 = matrix2->r1c1;
const double r1c2 = matrix2->r1c2;
@ -214,7 +214,7 @@ inline void matrix3x3_swap_fp64(matrix3x3_fp64_t* matrix1, matrix3x3_fp64_t* mat
// ============= Set from twin type ============= //
inline void matrix3x3_convert_fp64_to_fp32(const matrix3x3_fp64_t* from, matrix3x3_fp32_t* to)
inline void bgc_matrix3x3_convert_fp64_to_fp32(const bgc_matrix3x3_fp64_t* from, bgc_matrix3x3_fp32_t* to)
{
to->r1c1 = (float) from->r1c1;
to->r1c2 = (float) from->r1c2;
@ -229,7 +229,7 @@ inline void matrix3x3_convert_fp64_to_fp32(const matrix3x3_fp64_t* from, matrix3
to->r3c3 = (float) from->r3c3;
}
inline void matrix3x3_convert_fp32_to_fp64(const matrix3x3_fp32_t* from, matrix3x3_fp64_t* to)
inline void bgc_matrix3x3_convert_fp32_to_fp64(const bgc_matrix3x3_fp32_t* from, bgc_matrix3x3_fp64_t* to)
{
to->r1c1 = from->r1c1;
to->r1c2 = from->r1c2;
@ -246,14 +246,14 @@ inline void matrix3x3_convert_fp32_to_fp64(const matrix3x3_fp32_t* from, matrix3
// ================ Determinant ================= //
inline float matrix3x3_get_determinant_fp32(const matrix3x3_fp32_t* matrix)
inline float bgc_matrix3x3_get_determinant_fp32(const bgc_matrix3x3_fp32_t* matrix)
{
return matrix->r1c1 * (matrix->r2c2 * matrix->r3c3 - matrix->r2c3 * matrix->r3c2)
+ matrix->r1c2 * (matrix->r2c3 * matrix->r3c1 - matrix->r2c1 * matrix->r3c3)
+ matrix->r1c3 * (matrix->r2c1 * matrix->r3c2 - matrix->r2c2 * matrix->r3c1);
}
inline double matrix3x3_get_determinant_fp64(const matrix3x3_fp64_t* matrix)