mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-23 05:15:34 +00:00
update assimp lib
This commit is contained in:
parent
03a348deb7
commit
d3f8fee74e
1725 changed files with 196314 additions and 62009 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Open Asset Import Library (assimp)
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006-2022, assimp team
|
||||
Copyright (c) 2006-2024, assimp team
|
||||
|
||||
All rights reserved.
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ class utMatrix4x4 : public ::testing::Test {
|
|||
TEST_F(utMatrix4x4, badIndexOperatorTest) {
|
||||
aiMatrix4x4 m;
|
||||
ai_real *a0 = m[4];
|
||||
EXPECT_EQ(NULL, a0);
|
||||
EXPECT_EQ(nullptr, a0);
|
||||
}
|
||||
|
||||
TEST_F(utMatrix4x4, indexOperatorTest) {
|
||||
|
|
@ -90,3 +90,17 @@ TEST_F(utMatrix4x4, indexOperatorTest) {
|
|||
ai_real *a15 = a12 + 3;
|
||||
EXPECT_FLOAT_EQ(1.0, *a15);
|
||||
}
|
||||
|
||||
TEST_F(utMatrix4x4, identityMatrixTest) {
|
||||
aiMatrix4x4 m1 = aiMatrix4x4(1.f,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0, 1);
|
||||
EXPECT_TRUE(m1.IsIdentity());
|
||||
aiMatrix4x4 m2 = aiMatrix4x4(1.02f,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0, 1);
|
||||
EXPECT_FALSE(m2.IsIdentity());
|
||||
aiMatrix4x4 m3 = aiMatrix4x4(1.009f,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0, 1);
|
||||
EXPECT_TRUE(m3.IsIdentity());
|
||||
|
||||
EXPECT_TRUE(m1.IsIdentity(1e-3f));
|
||||
EXPECT_FALSE(m2.IsIdentity(1e-3f));
|
||||
EXPECT_TRUE(m2.IsIdentity(1e-1f));
|
||||
EXPECT_FALSE(m3.IsIdentity(1e-3f));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue