Упорядочивание проекта
This commit is contained in:
parent
0dcd9c0d4d
commit
89dfd7644b
32 changed files with 1730 additions and 1719 deletions
|
|
@ -53,12 +53,12 @@ structure_fp32_t* make_structures(const unsigned int amount)
|
||||||
|
|
||||||
void print_versor_fp32(const BgcVersorFP32* versor)
|
void print_versor_fp32(const BgcVersorFP32* versor)
|
||||||
{
|
{
|
||||||
printf("Versor (s0 = %0.12f, x1 = %0.12f, x2 = %0.12f, x3 = %0.12f)\n", versor->s0, versor->x1, versor->x2, versor->x3);
|
printf("Versor (s0 = %0.12f, x1 = %0.12f, x2 = %0.12f, x3 = %0.12f)\n", versor->_s0, versor->_x1, versor->_x2, versor->_x3);
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_versor_fp64(const BgcVersorFP64* versor)
|
void print_versor_fp64(const BgcVersorFP64* versor)
|
||||||
{
|
{
|
||||||
printf("Versor (s0 = %0.20f, x1 = %0.20f, x2 = %0.20f, x3 = %0.20f)\n", versor->s0, versor->x1, versor->x2, versor->x3);
|
printf("Versor (s0 = %0.20f, x1 = %0.20f, x2 = %0.20f, x3 = %0.20f)\n", versor->_s0, versor->_x1, versor->_x2, versor->_x3);
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_vector_fp32(const BgcVector3FP32* vector)
|
void print_vector_fp32(const BgcVector3FP32* vector)
|
||||||
|
|
@ -469,11 +469,16 @@ void test_basis_difference_fp64()
|
||||||
print_versor_fp64(&turn);
|
print_versor_fp64(&turn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typedef union {
|
||||||
|
int si32;
|
||||||
|
float fp32;
|
||||||
|
} uni_number;
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
//BgcVersorFP32 start = { 1.0f, 0.0f, 0.0f, 0.0f };
|
//BgcVersorFP32 start = { 1.0f, 0.0f, 0.0f, 0.0f };
|
||||||
//BgcVersorFP32 end = { 0.0f, 1.0f, 0.0f, 0.0f };
|
//BgcVersorFP32 end = { 0.0f, 1.0f, 0.0f, 0.0f };
|
||||||
|
/*
|
||||||
BgcVersorFP32 start = { 1.0f, 0.0f, 0.0f, 0.0f };
|
BgcVersorFP32 start = { 1.0f, 0.0f, 0.0f, 0.0f };
|
||||||