Implements rotgen::quaternion
Closes #19 Co-authored-by: Jules Pénuchot <jules@penuchot.com>
This commit is contained in:
parent
aba4d65feb
commit
c400650f1a
53 changed files with 995 additions and 84 deletions
32
test/unit/quaternion/constructors.cpp
Normal file
32
test/unit/quaternion/constructors.cpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
//==================================================================================================
|
||||
/*
|
||||
ROTGEN - Runtime Overlay for Eigen
|
||||
Copyright : CODE RECKONS
|
||||
SPDX-License-Identifier: BSL-1.0
|
||||
*/
|
||||
//==================================================================================================
|
||||
|
||||
#include <rotgen/rotgen.hpp>
|
||||
|
||||
#include "unit/tests.hpp"
|
||||
|
||||
TTS_CASE_TPL("Default matrix dynamic constructor",
|
||||
float,
|
||||
double)<typename Scalar>(tts::type<Scalar>)
|
||||
{
|
||||
rotgen::quaternion<Scalar> rotgen_quaterion;
|
||||
|
||||
TTS_PASS();
|
||||
};
|
||||
|
||||
TTS_CASE_TPL("Default matrix dynamic constructor",
|
||||
float,
|
||||
double)<typename Scalar>(tts::type<Scalar>)
|
||||
{
|
||||
rotgen::quaternion<Scalar> quaterion{1, 2, 3, 4};
|
||||
|
||||
TTS_EQUAL(quaterion.w(), rotgen::Index{1});
|
||||
TTS_EQUAL(quaterion.x(), rotgen::Index{2});
|
||||
TTS_EQUAL(quaterion.y(), rotgen::Index{3});
|
||||
TTS_EQUAL(quaterion.z(), rotgen::Index{4});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue