Изменение функций-конструкторов для SLERP
This commit is contained in:
parent
75cd82de6a
commit
880673a17a
3 changed files with 95 additions and 95 deletions
|
@ -473,17 +473,17 @@ int main()
|
|||
{
|
||||
//BgcVersorFP32 start = { 1.0f, 0.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 end = { 0.9999f, 0.01414f, 0.0f, 0.0f };
|
||||
BgcSlerpFP32 slerp;
|
||||
BgcVersorFP32 result;
|
||||
bgc_slerp_make_fp32(&start, &end, &slerp);
|
||||
bgc_slerp_make_full_fp32(&start, &end, &slerp);
|
||||
bgc_slerp_get_turn_for_phase_fp32(&slerp, 0.5f, &result);
|
||||
printf("Result: %0.12f, %0.12f, %0.12f, %0.12f\n", result.s0, result.x1, result.x2, result.x3);
|
||||
*/
|
||||
|
||||
test_basis_difference_fp64();
|
||||
print_versor_fp32(&result);
|
||||
|
||||
//test_basis_difference_fp64();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue