Переименование типов в соответствии со стилем POSIX, отказ от префикса bg_
This commit is contained in:
parent
d2a25823a5
commit
605afabd94
25 changed files with 1109 additions and 1035 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _GEOMETRY_QUATERNION_H_
|
||||
#define _GEOMETRY_QUATERNION_H_
|
||||
#ifndef _BASIC_GEOMETRY_QUATERNION_H_
|
||||
#define _BASIC_GEOMETRY_QUATERNION_H_
|
||||
|
||||
#include <math.h>
|
||||
|
||||
|
|
@ -9,15 +9,15 @@
|
|||
|
||||
typedef struct {
|
||||
float s0, x1, x2, x3;
|
||||
} BgFP32Quaternion;
|
||||
} fp32_quaternion_t;
|
||||
|
||||
typedef struct {
|
||||
double s0, x1, x2, x3;
|
||||
} BgFP64Quaternion;
|
||||
} fp64_quaternion_t;
|
||||
|
||||
// ==================== Reset =================== //
|
||||
|
||||
static inline void bg_fp32_quaternion_reset(BgFP32Quaternion * quaternion)
|
||||
static inline void fp32_quaternion_reset(fp32_quaternion_t * quaternion)
|
||||
{
|
||||
quaternion->s0 = 0.0f;
|
||||
quaternion->x1 = 0.0f;
|
||||
|
|
@ -25,7 +25,7 @@ static inline void bg_fp32_quaternion_reset(BgFP32Quaternion * quaternion)
|
|||
quaternion->x3 = 0.0f;
|
||||
}
|
||||
|
||||
static inline void bg_fp64_quaternion_reset(BgFP64Quaternion * quaternion)
|
||||
static inline void fp64_quaternion_reset(fp64_quaternion_t * quaternion)
|
||||
{
|
||||