Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
test_irr_rotation.cpp File Reference
#include "catch.h"
#include "catch_amalgamated.hpp"
#include "irrMath.h"
#include "matrix4.h"
#include "irr_v3d.h"
#include "quaternion.h"
#include <functional>
+ Include dependency graph for test_irr_rotation.cpp:

Typedefs

using matrix4 = core::matrix4
 
using quaternion = core::quaternion
 

Functions

static bool matrix_equals (const matrix4 &mat, const matrix4 &mat2)
 
static bool euler_angles_equiv (v3f rad, v3f rad2)
 
static void test_euler_angles_rad (const std::function< void(v3f)> &test_euler_radians)
 
 TEST_CASE ("rotations")
 

Variables

const f32 tolerance = 1e-2f
 

Typedef Documentation

◆ matrix4

using matrix4 = core::matrix4

◆ quaternion

using quaternion = core::quaternion

Function Documentation

◆ euler_angles_equiv()

static bool euler_angles_equiv ( v3f rad,
v3f rad2 )
static

References matrix_equals().

Referenced by TEST_CASE().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ matrix_equals()

static bool matrix_equals ( const matrix4 & mat,
const matrix4 & mat2 )
static

References tolerance.

Referenced by euler_angles_equiv(), and TEST_CASE().

+ Here is the caller graph for this function:

◆ TEST_CASE()

TEST_CASE ( "rotations" )

References CHECK, euler_angles_equiv(), matrix_equals(), and test_euler_angles_rad().

+ Here is the call graph for this function:

◆ test_euler_angles_rad()

static void test_euler_angles_rad ( const std::function< void(v3f)> & test_euler_radians)
static

Referenced by TEST_CASE().

+ Here is the caller graph for this function:

Variable Documentation

◆ tolerance

const f32 tolerance = 1e-2f