Добавлены матрицы 2x3 и 3x2, добавлены произведения матриц. Изменения в названиях функций
This commit is contained in:
parent
86486ac9cf
commit
049f09f3d4
31 changed files with 1831 additions and 1314 deletions
24
src/versor.h
24
src/versor.h
|
@ -226,18 +226,7 @@ static inline int dp_versor_is_idle(const DPVersor* versor)
|
|||
|
||||
// ============= Copy to twin type ============== //
|
||||
|
||||
static inline void sp_versor_copy_to_double(const SPVersor* versor, DPVersor* result)
|
||||
{
|
||||
dp_versor_set(
|
||||
(double)versor->_s0,
|
||||
(double)versor->_x1,
|
||||
(double)versor->_x2,
|
||||
(double)versor->_x3,
|
||||
result
|
||||
);
|
||||
}
|
||||
|
||||
static inline void dp_versor_copy_to_single(const DPVersor* versor, SPVersor* result)
|
||||
static inline void sp_versor_from_double(const DPVersor* versor, SPVersor* result)
|
||||
{
|
||||
sp_versor_set(
|
||||
(float)versor->_s0,
|
||||
|
@ -248,6 +237,17 @@ static inline void dp_versor_copy_to_single(const DPVersor* versor, SPVersor* re
|
|||
);
|
||||
}
|
||||
|
||||
static inline void dp_versor_from_single(const SPVersor* versor, DPVersor* result)
|
||||
{
|
||||
dp_versor_set(
|
||||
(double)versor->_s0,
|
||||
(double)versor->_x1,
|
||||
(double)versor->_x2,
|
||||
(double)versor->_x3,
|
||||
result
|
||||
);
|
||||
}
|
||||
|
||||
// ================= Inversion ================== //
|
||||
|
||||
static inline void sp_versor_invert(SPVersor* versor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue