Продолжение переименования
This commit is contained in:
parent
3b6efaafa9
commit
120e651517
19 changed files with 457 additions and 421 deletions
|
|
@ -9,7 +9,7 @@ const versor_fp64_t FP64_IDLE_VERSOR = { 1.0, 0.0, 0.0, 0.0 };
|
|||
|
||||
// =============== Set Crude Turn =============== //
|
||||
|
||||
void versor_fp32_set_crude_turn(const float x1, const float x2, const float x3, const float angle, const angle_unit_t unit, versor_fp32_t* result)
|
||||
void versor_set_crude_turn_fp32(const float x1, const float x2, const float x3, const float angle, const angle_unit_t unit, versor_fp32_t* result)
|
||||
{
|
||||
const float square_vector = x1 * x1 + x2 * x2 + x3 * x3;
|
||||
|
||||
|
|
@ -29,10 +29,10 @@ void versor_fp32_set_crude_turn(const float x1, const float x2, const float x3,
|
|||
|
||||
const float multiplier = sine / sqrtf(square_vector);
|
||||
|
||||
versor_fp32_set_values(cosf(half_angle), x1 * multiplier, x2 * multiplier, x3 * multiplier, result);
|
||||
versor_set_values_fp32(cosf(half_angle), x1 * multiplier, x2 * multiplier, x3 * multiplier, result);
|
||||
}
|
||||
|
||||
void versor_fp64_set_crude_turn(const double x1, const double x2, const double x3, const double angle, const angle_unit_t unit, versor_fp64_t* result)
|
||||
void versor_set_crude_turn_fp64(const double x1, const double x2, const double x3, const double angle, const angle_unit_t unit, versor_fp64_t* result)
|
||||
{
|
||||
const double square_vector = x1 * x1 + x2 * x2 + x3 * x3;
|
||||
|
||||
|
|
@ -52,12 +52,12 @@ void versor_fp64_set_crude_turn(const double x1, const double x2, const double x
|
|||
|
||||
const double multiplier = sine / sqrt(square_vector);
|
||||
|
||||
versor_fp64_set_values(cos(half_angle), x1 * multiplier, x2 * multiplier, x3 * multiplier, result);
|
||||
versor_set_values_fp64(cos(half_angle), x1 * multiplier, x2 * multiplier, x3 * multiplier, result);
|
||||
}
|
||||
|
||||
// ================= Rotation3 ================== //
|
||||
|
||||
void versor_fp32_get_rotation(const versor_fp32_t* versor, rotation3_fp32_t* result)
|
||||
void versor_get_rotation_fp32(const versor_fp32_t* versor, rotation3_fp32_t* result)
|
||||
{
|
||||
if (versor == 0 || result == 0) {
|
||||
return;
|
||||
|
|
@ -79,7 +79,7 @@ void versor_fp32_get_rotation(const versor_fp32_t* versor, rotation3_fp32_t* res
|
|||
result->axis.x3 = versor->x3 * multiplier;
|
||||
}
|
||||
|
||||
void versor_fp64_get_rotation(const versor_fp64_t* versor, rotation3_fp64_t* result)
|
||||
void versor_get_rotation_fp64(const versor_fp64_t* versor, rotation3_fp64_t* result)
|
||||
{
|
||||
if (versor == 0 || result == 0) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue