Отказ от терминов Versor и Cotes Number в пользу Turn3 и Turn2, использование кватернионов внутри Turn3

This commit is contained in:
Andrey Pokidov 2026-02-04 21:02:15 +07:00
parent 38cff7e27d
commit b470a3194b
27 changed files with 1815 additions and 2045 deletions

View file

@ -60,10 +60,6 @@
<Option compilerVar="CC" />
</Unit>
<Unit filename="complex.h" />
<Unit filename="cotes-number.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="cotes-number.h" />
<Unit filename="dual-number.c">
<Option compilerVar="CC" />
</Unit>
@ -116,14 +112,18 @@
<Option compilerVar="CC" />
</Unit>
<Unit filename="quaternion.h" />
<Unit filename="rotation3.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="rotation3.h" />
<Unit filename="slerp.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="slerp.h" />
<Unit filename="turn2.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="turn2.h" />
<Unit filename="turn3.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="turn3.h" />
<Unit filename="utilities.c">
<Option compilerVar="CC" />
</Unit>
@ -136,10 +136,6 @@
<Option compilerVar="CC" />
</Unit>
<Unit filename="vector3.h" />
<Unit filename="versor.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="versor.h" />
<Extensions />
</Project>
</CodeBlocks_project_file>

View file

@ -18,15 +18,14 @@
#include "./affine3.h"
#include "./complex.h"
#include "./cotes-number.h"
#include "./quaternion.h"
#include "./rotation3.h"
#include "./turn2.h"
#include "./turn3.h"
#include "./quaternion.h"
#include "./versor.h"
#include "./position2.h"
#include "./position3.h"
#include "./slerp.h"
#include "./position2.h"
#include "./position3.h"
#endif

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,91 +0,0 @@
#include "./cotes-number.h"
const BGC_FP32_CotesNumber BGC_FP32_IDLE_COTES_NUMBER = { 1.0f, 0.0f };
const BGC_FP64_CotesNumber BGC_FP64_IDLE_COTES_NUMBER = { 1.0, 0.0 };
extern inline void bgc_fp32_cotes_number_reset(BGC_FP32_CotesNumber* number);
extern inline void bgc_fp64_cotes_number_reset(BGC_FP64_CotesNumber* number);
extern inline void bgc_fp32_cotes_number_make(BGC_FP32_CotesNumber* number, const float x1, const float x2);
extern inline void bgc_fp64_cotes_number_make(BGC_FP64_CotesNumber* number, const double x1, const double x2);
extern inline void bgc_fp32_cotes_number_make_for_angle(BGC_FP32_CotesNumber* number, const float angle, const int angle_unit);
extern inline void bgc_fp64_cotes_number_make_for_angle(BGC_FP64_CotesNumber* number, const double angle, const int angle_unit);
extern inline int bgc_fp32_cotes_number_is_idle(const BGC_FP32_CotesNumber* number);
extern inline int bgc_fp64_cotes_number_is_idle(const BGC_FP64_CotesNumber* number);
extern inline float bgc_fp32_cotes_number_get_angle(const BGC_FP32_CotesNumber* number, const int angle_unit);
extern inline double bgc_fp64_cotes_number_get_angle(const BGC_FP64_CotesNumber* number, const int angle_unit);