Переход на версию 0.3: изменение подхода к именованию сущностей, добавление, изменение и удаление ряда функций
This commit is contained in:
parent
d33daf4e2d
commit
f7e41645fe
87 changed files with 4580 additions and 4051 deletions
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
#include "./../../helpers.h"
|
||||
|
||||
void test_quaternion_set_to_identity_fp32()
|
||||
void test_quaternion_make_unit_fp32()
|
||||
{
|
||||
BgcQuaternionFP32 vector;
|
||||
BGC_FP32_Quaternion vector;
|
||||
|
||||
print_testing_name("bgc_quaternion_set_to_identity_fp32");
|
||||
print_testing_name("bgc_fp32_quaternion_make_unit");
|
||||
|
||||
bgc_quaternion_make_unit_fp32(&vector);
|
||||
bgc_fp32_quaternion_make_unit(&vector);
|
||||
|
||||
if (vector.s0 != 1.0f || vector.x1 != 0.0f || vector.x2 != 0.0f || vector.x3 != 0.0f) {
|
||||
print_testing_failed();
|
||||
|
|
@ -18,13 +18,13 @@ void test_quaternion_set_to_identity_fp32()
|
|||
print_testing_success();
|
||||
}
|
||||
|
||||
void test_quaternion_set_to_identity_fp64()
|
||||
void test_quaternion_make_unit_fp64()
|
||||
{
|
||||
BgcQuaternionFP64 vector;
|
||||
BGC_FP64_Quaternion vector;
|
||||
|
||||
print_testing_name("bgc_quaternion_set_to_identity_fp64");
|
||||
print_testing_name("bgc_fp64_quaternion_make_unit");
|
||||
|
||||
bgc_quaternion_make_unit_fp64(&vector);
|
||||
bgc_fp64_quaternion_make_unit(&vector);
|
||||
|
||||
if (vector.s0 != 1.0 || vector.x1 != 0.0 || vector.x2 != 0.0 || vector.x3 != 0.0) {
|
||||
print_testing_failed();
|
||||
|
|
@ -36,6 +36,6 @@ void test_quaternion_set_to_identity_fp64()
|
|||
|
||||
void test_quaternion_set_to_identity()
|
||||
{
|
||||
test_quaternion_set_to_identity_fp32();
|
||||
test_quaternion_set_to_identity_fp64();
|
||||
test_quaternion_make_unit_fp32();
|
||||
test_quaternion_make_unit_fp64();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue