Добавление базисов как вспомогательной структуры
This commit is contained in:
parent
9d7011e81e
commit
e6a94ab8d9
9 changed files with 345 additions and 14 deletions
|
@ -29,6 +29,20 @@
|
|||
#define BGC_GOLDEN_RATIO_HIGH_FP64 1.61803398874989485
|
||||
#define BGC_GOLDEN_RATIO_LOW_FP64 0.61803398874989485
|
||||
|
||||
#define BGC_SUCCESS 0
|
||||
#define BGC_FAILED -1
|
||||
|
||||
#define BGC_DIRECTION_X1 1
|
||||
#define BGC_DIRECTION_X2 2
|
||||
#define BGC_DIRECTION_X3 3
|
||||
|
||||
inline int bgc_is_correct_direction(const int direction)
|
||||
{
|
||||
return direction == BGC_DIRECTION_X1 || direction == -BGC_DIRECTION_X1
|
||||
|| direction == BGC_DIRECTION_X2 || direction == -BGC_DIRECTION_X2
|
||||
|| direction == BGC_DIRECTION_X3 || direction == -BGC_DIRECTION_X3;
|
||||
}
|
||||
|
||||
inline int bgc_is_zero_fp32(const float value)
|
||||
{
|
||||
return (-BGC_EPSYLON_FP32 <= value) && (value <= BGC_EPSYLON_FP32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue