Blender V5.3
BLI_math_rotation_test.cc File Reference
#include "testing/testing.h"
#include "BLI_math_base_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_rotation_legacy.hh"
#include "BLI_math_vector.hh"
#include "BLI_vector.hh"
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::math
namespace  blender::math::tests

Functions

static void blender::test_quat_to_mat_to_quat (float w, float x, float y, float z)
 blender::TEST (math_rotation, quat_to_mat_to_quat_rot180)
 blender::TEST (math_rotation, quat_to_mat_to_quat_rot180n)
 blender::TEST (math_rotation, quat_to_mat_to_quat_rot90)
 blender::TEST (math_rotation, quat_to_mat_to_quat_rot90n)
 blender::TEST (math_rotation, quat_to_mat_to_quat_bad_T83196)
 blender::TEST (math_rotation, quat_to_mat_to_quat_bad_negative)
 blender::TEST (math_rotation, quat_to_mat_to_quat_near_1000)
 blender::TEST (math_rotation, quat_to_mat_to_quat_near_0100)
 blender::TEST (math_rotation, quat_to_mat_to_quat_near_0010)
 blender::TEST (math_rotation, quat_to_mat_to_quat_near_0001)
 blender::TEST (math_rotation, quat_to_mat_to_quat_zeroed_matrix)
 blender::TEST (math_rotation, quat_split_swing_and_twist_negative)
 blender::TEST (math_rotation, mat3_normalized_to_quat_fast_degenerate)
 blender::math::tests::TEST (math_rotation, DefaultConstructor)
 blender::math::tests::TEST (math_rotation, RotateDirectionAroundAxis)
 blender::math::tests::TEST (math_rotation, AxisAngleConstructors)
 blender::math::tests::TEST (math_rotation, QuaternionDot)
 blender::math::tests::TEST (math_rotation, QuaternionConjugate)
 blender::math::tests::TEST (math_rotation, QuaternionNormalize)
 blender::math::tests::TEST (math_rotation, QuaternionInvert)
 blender::math::tests::TEST (math_rotation, QuaternionCanonicalize)
 blender::math::tests::TEST (math_rotation, QuaternionAngleBetween)
 blender::math::tests::TEST (math_rotation, QuaternionPower)
 blender::math::tests::TEST (math_rotation, QuaternionFromTriangle)
 blender::math::tests::TEST (math_rotation, QuaternionFromVector)
 blender::math::tests::TEST (math_rotation, QuaternionWrappedAround)
 blender::math::tests::TEST (math_rotation, QuaternionFromTracking)
 blender::math::tests::TEST (math_rotation, EulerWrappedAround)
 blender::math::tests::TEST (math_rotation, Euler3ToGimbal)
 blender::math::tests::TEST (math_rotation, CartesianBasis)
 blender::math::tests::TEST (math_rotation, Transform)
 blender::math::tests::TEST (math_rotation, DualQuaternionNormalize)
 blender::math::tests::TEST (math_rotation, DualQuaternionFromMatrix)
 blender::math::tests::TEST (math_rotation, DualQuaternionTransform)
 blender::math::tests::TEST (math_axis_angle, AxisAngleFromQuaternion)
Test <tt>sin_cos_from_fraction</tt> Accuracy & Exact Symmetry
static void blender::test_sin_cos_from_fraction_accuracy (const int range, const float expected_eps)
 blender::TEST (math_rotation, sin_cos_from_fraction_accuracy)
static void blender::test_sin_cos_from_fraction_symmetry (const int range)
 blender::TEST (math_rotation, sin_cos_from_fraction_symmetry)