Отказ от терминов Versor и Cotes Number в пользу Turn3 и Turn2, использование кватернионов внутри Turn3
This commit is contained in:
parent
38cff7e27d
commit
b470a3194b
27 changed files with 1815 additions and 2045 deletions
|
|
@ -40,7 +40,7 @@ BGC_FP32_Affine3* _create_bgc_affine3_random_list(int affine_amount)
|
||||||
BGC_FP32_Position3 position;
|
BGC_FP32_Position3 position;
|
||||||
|
|
||||||
for (int i = 0; i < affine_amount; i++) {
|
for (int i = 0; i < affine_amount; i++) {
|
||||||
bgc_fp32_versor_make(
|
bgc_fp32_turn3_set_raw_values(
|
||||||
&position.turn,
|
&position.turn,
|
||||||
get_random_value_fp32(),
|
get_random_value_fp32(),
|
||||||
get_random_value_fp32(),
|
get_random_value_fp32(),
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#endif // _WINDOWS_
|
#endif // _WINDOWS_
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
BGC_FP32_Versor versor1, versor2, result;
|
BGC_FP32_Turn3 versor1, versor2, result;
|
||||||
} structure_fp32_t;
|
} structure_fp32_t;
|
||||||
|
|
||||||
structure_fp32_t* allocate_structures(const unsigned int amount)
|
structure_fp32_t* allocate_structures(const unsigned int amount)
|
||||||
|
|
@ -29,7 +29,7 @@ structure_fp32_t* make_structures(const unsigned int amount)
|
||||||
const float multiplier = 2.0f / RAND_MAX;
|
const float multiplier = 2.0f / RAND_MAX;
|
||||||
|
|
||||||