Blender V5.0
armature_test.cc File Reference
#include "BKE_armature.hh"
#include "BLI_listbase.h"
#include "BLI_math_matrix.h"
#include "BLI_math_matrix.hh"
#include "BLI_math_rotation.h"
#include "BLI_math_vector.h"
#include "BLI_string.h"
#include "DNA_armature_types.h"
#include "testing/testing.h"

Go to the source code of this file.

Classes

class  blender::bke::tests::BKE_armature_find_selected_bones_test

Namespaces

namespace  blender
namespace  blender::bke
namespace  blender::bke::tests

Macros

#define TEST_VEC_ROLL_TO_MAT3_ORTHOGONAL(name, s, x1, x2, y1, y2)

Functions

static double blender::bke::tests::EXPECT_M3_ORTHOGONAL (const float mat[3][3], double epsilon_scale, double epsilon_ortho)
 blender::bke::tests::TEST (mat3_vec_to_roll, UnitMatrix)
 blender::bke::tests::TEST (mat3_vec_to_roll, Rotationmatrix)
static double blender::bke::tests::test_vec_roll_to_mat3_normalized (const float input[3], float roll, const float expected_roll_mat[3][3], bool normalize=true)
static double blender::bke::tests::find_flip_boundary (double x, double z)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, FlippedBoundary1)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, FlippedBoundary2)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Flipped1)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Flipped2)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Flipped3)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Rotate90_Z_CW)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Rotate90_Z_CCW)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Rotate90_X_CW)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Rotate90_X_CCW)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Generic1)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Generic2)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Generic3)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Generic4)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Roll1)
static double blender::bke::tests::test_vec_roll_to_mat3_orthogonal (double s, double x, double z)
static void blender::bke::tests::test_vec_roll_to_mat3_orthogonal (double s, double x1, double x2, double y1, double y2)
 blender::bke::tests::TEST_F (BKE_armature_find_selected_bones_test, some_bones_selected)
 blender::bke::tests::TEST_F (BKE_armature_find_selected_bones_test, no_bones_selected)
 blender::bke::tests::TEST_F (BKE_armature_find_selected_bones_test, all_bones_selected)

Variables

static const float blender::bke::tests::FLOAT_EPSILON = 1.2e-7
static const float blender::bke::tests::SCALE_EPSILON = 3.71e-5
static const float blender::bke::tests::ORTHO_EPSILON = 5e-5

Macro Definition Documentation

◆ TEST_VEC_ROLL_TO_MAT3_ORTHOGONAL

#define TEST_VEC_ROLL_TO_MAT3_ORTHOGONAL ( name,
s,
x1,
x2,
y1,
y2 )
Value:
{ \
test_vec_roll_to_mat3_orthogonal(s, x1, x2, y1, y2); \
}
void vec_roll_to_mat3_normalized(const float nor[3], float roll, float r_mat[3][3])
TEST(array_store, Nop)
const char * name

Definition at line 326 of file armature_test.cc.