Исправление функции, которая находит трёхмерных поворот между двумя парами векторов
This commit is contained in:
parent
57280ac3f3
commit
2ce4b64ca3
7 changed files with 705 additions and 467 deletions
|
|
@ -13,6 +13,20 @@
|
|||
#define BGC_ZERO_TURN 0
|
||||
#define BGC_OPPOSITE -1
|
||||
|
||||
#define _BGC_ERROR_TURN3_FIRST_PAIR 3000
|
||||
#define _BGC_ERROR_TURN3_SECOND_PAIR 3010
|
||||
#define _BGC_ERROR_TURN3_EMPTY_MAIN 1
|
||||
#define _BGC_ERROR_TURN3_EMPTY_BRANCH 2
|
||||
#define _BGC_ERROR_TURN3_PAIR_PARALLEL 3
|
||||
|
||||
#define BGC_ERROR_TURN3_FIRST_PAIR_EMPTY_MAIN 3001
|
||||
#define BGC_ERROR_TURN3_FIRST_PAIR_EMPTY_BRANCH 3002
|
||||
#define BGC_ERROR_TURN3_FIRST_PAIR_PARALLEL 3003
|
||||
|
||||
#define BGC_ERROR_TURN3_SECOND_PAIR_EMPTY_MAIN 3011
|
||||
#define BGC_ERROR_TURN3_SECOND_PAIR_EMPTY_BRANCH 3012
|
||||
#define BGC_ERROR_TURN3_SECOND_PAIR_PARALLEL 3013
|
||||
|
||||
#define BGC_ERROR_PRIMARY_DIRECTION_UNKNOWN -3001
|
||||
#define BGC_ERROR_PRIMARY_VECTOR_IS_ZERO -3002
|
||||
|
||||
|
|
@ -133,22 +147,22 @@ int bgc_fp32_turn3_find_direction_difference(BGC_FP32_Turn3* difference, const B
|
|||
|
||||
int bgc_fp64_turn3_find_direction_difference(BGC_FP64_Turn3* difference, const BGC_FP64_Vector3* start, const BGC_FP64_Vector3* end);
|
||||
|
||||
// =============== Set Directions =============== //
|
||||
// ======= Find Direction Pair Difference ======= //
|
||||
|
||||
int bgc_fp32_turn3_make_basis_difference(
|
||||
int bgc_fp32_turn3_find_pair_difference(
|
||||
BGC_FP32_Turn3* turn,
|
||||