Добавление тангентов (аналог версоров, но для двумерных пространств) / Adding of tangent pairs, it is like versors but for 2 dimensional spaces

This commit is contained in:
Andrey Pokidov 2024-12-19 00:16:52 +07:00
parent 5fd14e4627
commit 896c8615f5
7 changed files with 316 additions and 5 deletions

View file

@ -530,7 +530,7 @@ void bg_fp64_versor_get_rotation(const BgFP64Versor* versor, BgFP64Rotation3* re
// =========== Make Rotation Matrix3x3 ========== //
static inline void bg_fp32_versor_get_rotation_matrix(const BgFP32Versor* versor, BgFP32Matrix3x3* matrix)
static inline void bg_fp32_versor_make_rotation_matrix(const BgFP32Versor* versor, BgFP32Matrix3x3* matrix)
{
const float s0s0 = versor->s0 * versor->s0;
const float x1x1 = versor->x1 * versor->x1;
@ -558,7 +558,7 @@ static inline void bg_fp32_versor_get_rotation_matrix(const BgFP32Versor* versor
matrix->r1c3 = x1x3 + s0x2;
}
static inline void bg_fp64_versor_get_rotation_matrix(const BgFP64Versor* versor, BgFP64Matrix3x3* matrix)
static inline void bg_fp64_versor_make_rotation_matrix(const BgFP64Versor* versor, BgFP64Matrix3x3* matrix)
{
const double s0s0 = versor->s0 * versor->s0;
const double x1x1 = versor->x1 * versor->x1;
@ -588,7 +588,7 @@ static inline void bg_fp64_versor_get_rotation_matrix(const BgFP64Versor* versor
// =========== Make Reverse Matrix3x3 =========== //
static inline void bg_fp32_versor_get_reverse_matrix(const BgFP32Versor* versor, BgFP32Matrix3x3* matrix)
static inline void bg_fp32_versor_make_reverse_matrix(const BgFP32Versor* versor, BgFP32Matrix3x3* matrix)
{
const float s0s0 = versor->s0 * versor->s0;
const float x1x1 = versor->x1 * versor->x1;
@ -616,7 +616,7 @@ static inline void bg_fp32_versor_get_reverse_matrix(const BgFP32Versor* versor,
matrix->r1c3 = x1x3 - s0x2;
}
static inline void bg_fp64_versor_get_reverse_matrix(const BgFP64Versor* versor, BgFP64Matrix3x3* matrix)
static inline void bg_fp64_versor_make_reverse_matrix(const BgFP64Versor* versor, BgFP64Matrix3x3* matrix)
{
const double s0s0 = versor->s0 * versor->s0;
const double x1x1 = versor->x1 * versor->x1;