Blender V5.3
util_math_float3x3_test.cpp File Reference
#include "util/math_float3x3.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "util/log.h"
#include "util/transform.h"
#include <iostream>

Go to the source code of this file.

Classes

class  Float3x3Test
class  PackedFloat3x3Test

Functions

 MATCHER_P2 (IsNearFloat3, expected, eps, "")
 MATCHER_P2 (IsNearFloat3x3, expected, eps, "")
std::ostream & operator<< (std::ostream &os, const float3x3 &m)
 TEST_F (Float3x3Test, IsNearFloat3x3)
 TEST_F (Float3x3Test, multiply_scalar_by_matrix)
 TEST_F (Float3x3Test, multiply_matrix_by_scalar)
 TEST_F (Float3x3Test, multiply_matrix_by_matrix)
 TEST_F (Float3x3Test, multiply_matrix_by_vector)
 TEST_F (Float3x3Test, divide_matrix_by_scalar)
 TEST_F (Float3x3Test, float3x3_scale)
 TEST_F (Float3x3Test, transposed)
 TEST_F (Float3x3Test, determinant)
 TEST_F (Float3x3Test, adjoint)
 TEST_F (Float3x3Test, inverted)
 TEST_F (Float3x3Test, quaternion_to_scaled_rotation)
 TEST_F (Float3x3Test, quaternion_to_rotation)
 TEST_F (PackedFloat3x3Test, init_from_float3x3)
 TEST_F (PackedFloat3x3Test, cast_to_float3x3)
 TEST_F (PackedFloat3x3Test, assign_from_float3x3)

Function Documentation

◆ MATCHER_P2() [1/2]

MATCHER_P2 ( IsNearFloat3 ,
expected ,
eps ,
""  )

Definition at line 26 of file util_math_float3x3_test.cpp.

References eps, fabsf, and MATCHER_P2().

Referenced by MATCHER_P2(), MATCHER_P2(), and MATCHER_P2().

◆ MATCHER_P2() [2/2]

MATCHER_P2 ( IsNearFloat3x3 ,
expected ,
eps ,
""  )

Definition at line 41 of file util_math_float3x3_test.cpp.

References eps, fabsf, and MATCHER_P2().

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const float3x3 & m )

Definition at line 56 of file util_math_float3x3_test.cpp.

References operator<<(), float3x3::x, float3x3::y, and float3x3::z.

◆ TEST_F() [1/16]

TEST_F ( Float3x3Test ,
adjoint  )

Definition at line 202 of file util_math_float3x3_test.cpp.

References adjoint(), make_float3(), make_float3x3(), and TEST_F().

◆ TEST_F() [2/16]

◆ TEST_F() [3/16]

TEST_F ( Float3x3Test ,
divide_matrix_by_scalar  )

Definition at line 151 of file util_math_float3x3_test.cpp.

References make_float3(), make_float3x3(), and TEST_F().

◆ TEST_F() [4/16]

◆ TEST_F() [5/16]

◆ TEST_F() [6/16]

TEST_F ( Float3x3Test ,
IsNearFloat3x3  )

Definition at line 72 of file util_math_float3x3_test.cpp.

References identity_float3x3(), TEST_F(), and zero_float3x3().

◆ TEST_F() [7/16]

TEST_F ( Float3x3Test ,
multiply_matrix_by_matrix  )

Definition at line 116 of file util_math_float3x3_test.cpp.

References make_float3(), make_float3x3(), and TEST_F().

◆ TEST_F() [8/16]

TEST_F ( Float3x3Test ,
multiply_matrix_by_scalar  )

Definition at line 98 of file util_math_float3x3_test.cpp.

References make_float3(), make_float3x3(), and TEST_F().

◆ TEST_F() [9/16]

TEST_F ( Float3x3Test ,
multiply_matrix_by_vector  )

Definition at line 137 of file util_math_float3x3_test.cpp.

References make_float3(), make_float3x3(), and TEST_F().

◆ TEST_F() [10/16]

TEST_F ( Float3x3Test ,
multiply_scalar_by_matrix  )

Definition at line 81 of file util_math_float3x3_test.cpp.

References make_float3(), make_float3x3(), and TEST_F().

◆ TEST_F() [11/16]

◆ TEST_F() [12/16]

◆ TEST_F() [13/16]

TEST_F ( Float3x3Test ,
transposed  )

Definition at line 178 of file util_math_float3x3_test.cpp.

References make_float3(), make_float3x3(), TEST_F(), and transposed().

◆ TEST_F() [14/16]

TEST_F ( PackedFloat3x3Test ,
assign_from_float3x3  )

◆ TEST_F() [15/16]

TEST_F ( PackedFloat3x3Test ,
cast_to_float3x3  )

Definition at line 294 of file util_math_float3x3_test.cpp.

References make_float3(), make_float3x3(), and TEST_F().

◆ TEST_F() [16/16]