Большое переупорядочивание исходного кода
This commit is contained in:
parent
fffe2be43b
commit
43bf030295
26 changed files with 1225 additions and 1137 deletions
|
|
@ -69,6 +69,54 @@ inline void bgc_quaternion_set_values_fp64(const double s0, const double x1, con
|
|||
quaternion->x3 = x3;
|
||||
}
|
||||
|
||||
// ============= Get Square Modulus ============= //
|
||||
|
||||
inline float bgc_quaternion_get_square_modulus_fp32(const BgcQuaternionFP32* quaternion)
|
||||
{
|
||||
return (quaternion->s0 * quaternion->s0 + quaternion->x1 * quaternion->x1) + (quaternion->x2 * quaternion->x2 + quaternion->x3 * quaternion->x3);
|
||||
}
|
||||
|
||||
inline double bgc_quaternion_get_square_modulus_fp64(const BgcQuaternionFP64* quaternion)
|
||||
{
|
||||