Развитие дуальный чисел, векторов и кватернионов, а также гомогенных векторов и матриц
This commit is contained in:
parent
3f96b661a9
commit
b87518cd3f
21 changed files with 1787 additions and 1511 deletions
|
|
@ -64,6 +64,22 @@
|
||||||
<Option compilerVar="CC" />
|
<Option compilerVar="CC" />
|
||||||
</Unit>
|
</Unit>
|
||||||
<Unit filename="cotes-number.h" />
|
<Unit filename="cotes-number.h" />
|
||||||
|
<Unit filename="dual-number.c">
|
||||||
|
<Option compilerVar="CC" />
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="dual-number.h" />
|
||||||
|
<Unit filename="dual-quaternion.c">
|
||||||
|
<Option compilerVar="CC" />
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="dual-quaternion.h" />
|
||||||
|
<Unit filename="dual-vector3.c">
|
||||||
|
<Option compilerVar="CC" />
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="dual-vector3.h" />
|
||||||
|
<Unit filename="hg-matrix3x3.c">
|
||||||
|
<Option compilerVar="CC" />
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="hg-matrix3x3.h" />
|
||||||
<Unit filename="hg-vector3.c">
|
<Unit filename="hg-vector3.c">
|
||||||
<Option compilerVar="CC" />
|
<Option compilerVar="CC" />
|
||||||
</Unit>
|
</Unit>
|
||||||
|
|
|
||||||
|
|
@ -250,36 +250,36 @@ inline void bgc_fp64_cotes_number_exclude(BGC_FP64_CotesNumber* difference, cons
|
||||||
|
|
||||||
inline void bgc_fp32_cotes_number_get_rotation_matrix(BGC_FP32_Matrix2x2* matrix, const BGC_FP32_CotesNumber* number)
|
inline void bgc_fp32_cotes_number_get_rotation_matrix(BGC_FP32_Matrix2x2* matrix, const BGC_FP32_CotesNumber* number)
|
||||||
{
|
{
|
||||||
matrix->row1_col1 = number->_cos;
|
matrix->r1c1 = number->_cos;
|
||||||
matrix->row1_col2 = -number->_sin;
|
matrix->r1c2 = -number->_sin;
|
||||||