Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger authored and fredroy committed Jan 19, 2025
1 parent 263b8c8 commit 3a275b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sofa/framework/Type/src/sofa/type/Quat.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Quat

static Quat identity()
{
return Quat(0,0,0,1);
return Quat(0, 0, 0, 1);
}

void set(Real x, Real y, Real z, Real w)
Expand Down Expand Up @@ -147,7 +147,7 @@ class Quat

void clear()
{
set(0.0,0.0,0.0,1);
set(0, 0, 0, 1);
}

/// Convert the reference frame orientation into an orientation quaternion
Expand Down
2 changes: 1 addition & 1 deletion Sofa/framework/Type/test/Quater_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,5 +714,5 @@ TEST(QuaterTest, StructuredBindings)
EXPECT_NEAR(0., a, errorThreshold);
EXPECT_NEAR(0., b, errorThreshold);
EXPECT_NEAR(0., c, errorThreshold);
EXPECT_NEAR(0., d, errorThreshold);
EXPECT_NEAR(1., d, errorThreshold);
}

0 comments on commit 3a275b7

Please sign in to comment.