Удаление функций set_value для структур с открытыми полями (векторы и кватернионы)
This commit is contained in:
parent
e2bf8d28a8
commit
abf99a7126
25 changed files with 597 additions and 707 deletions
|
|
@ -104,13 +104,21 @@ inline void _bgc_fp64_turn3_normalize(BGC_FP64_Turn3* const turn)
|
|||
|
||||
inline void bgc_fp32_turn3_set_values(BGC_FP32_Turn3* const turn, const float s, const float x, const float y, const float z)
|
||||
{
|
||||
bgc_fp32_quaternion_set_values(&turn->_versor, s, x, y, z);
|
||||
turn->_versor.s = s;
|
||||
turn->_versor.x = x;
|
||||
turn->_versor.y = y;
|
||||
turn->_versor.z = z;
|
||||
|
||||
_bgc_fp32_turn3_normalize(turn);
|
||||
}
|
||||
|
||||
inline void bgc_fp64_turn3_set_values(BGC_FP64_Turn3* const turn, const double s, const double x, const double y, const double z)
|
||||
{
|
||||
bgc_fp64_quaternion_set_values(&turn->_versor, s, x, y, z);
|
||||
turn->_versor.s = s;
|
||||
turn->_versor.x = x;
|
||||
turn->_versor.y = y;
|
||||
turn->_versor.z = z;
|
||||
|
||||
_bgc_fp64_turn3_normalize(turn);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue